Connecting Tech Pros Worldwide Forums | Help | Site Map

Can I remotely login to a PC (not in my LAN) using SSH (or similar)?

Newbie
 
Join Date: Oct 2009
Posts: 13
#1: Oct 17 '09
Hello,

I am new to this networking stuff. I'm using OpenSSH that ships with Ubuntu.
Actually, I read lots of tutorials about SSH but I can connect to localhost or any other system in LAN but I cannot connect to my friend's system in another country.

Is it possible to connect using SSH from my ubuntu system in one country to another (linux) system that is located in another country?

Thank you,
SchoolOfLife

Newbie
 
Join Date: Oct 2009
Posts: 13
#2: Oct 18 '09

re: Can I remotely login to a PC (not in my LAN) using SSH (or similar)?


Quote:

Originally Posted by SchoolOfLife View Post

Is it possible to connect using SSH from my ubuntu system in one country to another (linux) system that is located in another country?

I searched google, read manpage and a few tutorials yesterday after I psoted this thread. I now understand that answer to my original question is yes. But the problem is that I can connect to localhost and other systems in LAN but when I try to connect to some system that is not in my LAN, Openssh simply does nothing. Any ideas about what might be causing this?

Thanks..
SchoolOfLife
sicarie's Avatar
Moderator
 
Join Date: Nov 2006
Location: USA
Posts: 3,929
#3: Oct 24 '09

re: Can I remotely login to a PC (not in my LAN) using SSH (or similar)?


Well, can you ping the system you're attempting to SSH into?
RedSon's Avatar
Site Moderator
 
Join Date: Jan 2007
Location: America
Posts: 3,393
#4: 3 Weeks Ago

re: Can I remotely login to a PC (not in my LAN) using SSH (or similar)?


Sicarie,

You should be more specific the OP probably doesnt understand what your question is alluding to.

OP,

If you try to ping your friends IP address it may come back as a valid address but you would be bouncing pings off their router, not their actual computer. What you need to do is make sure that you can get to your friends computer specifically. If you ping their IP address you need to make sure the pings are getting to their actual machine.

If you have determined that you can ping their actual machine (not the router, firewall, or other system) then you can try ssh. But you need to make sure that the SSH port is not blocked.
Newbie
 
Join Date: Oct 2009
Posts: 13
#5: 3 Weeks Ago

re: Can I remotely login to a PC (not in my LAN) using SSH (or similar)?


Sorry for not replying back. The system that I'm trying to connect to belongs to one of my friend who is busy with some stuff right now. So, I couldnot reach him. I got a mail from him today and it seems that things are going well now with him. He assured me that we will do this SSH stuff asap.

So, I'll be back with updates (and more questions) soon.
Thank you very much for replying...
Reply