View previous topic :: View next topic |
Author |
Message |
h2sammo Veteran
Joined: 11 Mar 2009 Posts: 1025 Location: Michigan
|
Posted: Fri Apr 30, 2010 1:54 pm Post subject: ssh over internet question |
|
|
is there a difference in syntax for logging in to my work machine from home?
i tried
and it didnt get me anywhere. |
|
Back to top |
|
|
Mousee Apprentice
Joined: 29 Mar 2004 Posts: 291 Location: Illinois, USA
|
Posted: Fri Apr 30, 2010 2:38 pm Post subject: |
|
|
Chances are your "work machine" is behind a firewall. Port 22 (SSH default port) is not normally opened to the public. So you may wish to ask your boss or someone who manages the network at your company if you're allowed to login remotely and, if so, if there's a port you can use to access your work computer from while at home (or out of the office in general). |
|
Back to top |
|
|
rtomek Apprentice
Joined: 05 Jan 2007 Posts: 210 Location: Chicago
|
Posted: Fri Apr 30, 2010 5:58 pm Post subject: |
|
|
Yes, our firewall is also set up so that we can ssh into other computers on our local network here at work using port 22. However, to access from outside we use a much higher port # so you need to contact your admin. |
|
Back to top |
|
|
h2sammo Veteran
Joined: 11 Mar 2009 Posts: 1025 Location: Michigan
|
Posted: Fri Apr 30, 2010 7:06 pm Post subject: |
|
|
so the syntax i used is correct? would a specific port be specified as follows?
Code: | ssh user@globalIP:port |
|
|
Back to top |
|
|
Mousee Apprentice
Joined: 29 Mar 2004 Posts: 291 Location: Illinois, USA
|
Posted: Fri Apr 30, 2010 7:10 pm Post subject: |
|
|
h2sammo wrote: | so the syntax i used is correct? would a specific port be specified as follows?
Code: | ssh user@globalIP:port |
|
No.
Code: |
ssh user@globalIP -p PORT
|
Also:
Will give you some other ideas as to what you can do with the ssh command |
|
Back to top |
|
|
eccerr0r Watchman
Joined: 01 Jul 2004 Posts: 9882 Location: almost Mile High in the USA
|
Posted: Mon May 03, 2010 10:51 pm Post subject: |
|
|
Reminder again that likely ssh connections are disallowed from the outside world for most companies for security reasons. And even so, many companies use private IP addresses which don't work on the outside world. Basically the few companies that have "class A" internet netblocks (typically 1.x.x.x to 63.x.x.x ) can potentially have external == internal IP addresses, but still be firewalled off (which is somewhat silly.) Some companies with class B can do this, but this is rare. The small companies with class Cs or smaller typically will use private IPs to stretch out number of computers as well as have a bit of simple firewall protection.
Many companies require a Virtual Private Network to connect into their network. A VPN server verifies the remote machine is an "authorized" machine and that remote machine becomes part of the corporate network. Then you may ssh to your work machine, typically regardless if it had a private or public IP address.
Getting your private key signed with the company VPN server depends on whether your company allows it or not. _________________ Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching? |
|
Back to top |
|
|
|