Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
ssh over internet question
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
h2sammo
Veteran
Veteran


Joined: 11 Mar 2009
Posts: 1025
Location: Michigan

PostPosted: Fri Apr 30, 2010 1:54 pm    Post subject: ssh over internet question Reply with quote

is there a difference in syntax for logging in to my work machine from home?

i tried
Code:
 ssh user@globalIP

and it didnt get me anywhere.
Back to top
View user's profile Send private message
Mousee
Apprentice
Apprentice


Joined: 29 Mar 2004
Posts: 291
Location: Illinois, USA

PostPosted: Fri Apr 30, 2010 2:38 pm    Post subject: Reply with quote

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
View user's profile Send private message
rtomek
Apprentice
Apprentice


Joined: 05 Jan 2007
Posts: 210
Location: Chicago

PostPosted: Fri Apr 30, 2010 5:58 pm    Post subject: Reply with quote

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
View user's profile Send private message
h2sammo
Veteran
Veteran


Joined: 11 Mar 2009
Posts: 1025
Location: Michigan

PostPosted: Fri Apr 30, 2010 7:06 pm    Post subject: Reply with quote

so the syntax i used is correct? would a specific port be specified as follows?
Code:
ssh user@globalIP:port
Back to top
View user's profile Send private message
Mousee
Apprentice
Apprentice


Joined: 29 Mar 2004
Posts: 291
Location: Illinois, USA

PostPosted: Fri Apr 30, 2010 7:10 pm    Post subject: Reply with quote

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:
Code:

man ssh

Will give you some other ideas as to what you can do with the ssh command :)
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 9882
Location: almost Mile High in the USA

PostPosted: Mon May 03, 2010 10:51 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum