|
||||||
| Forums FAQ | Members List | Search | Today's Posts | Mark Forums Read |
| Network/Internet Questions about internet applications, network configuration, usage (SAMBA, network printing, NFS) |
![]() |
|
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
All my previous attempts at connecting through ssh was when my laptop was using the same router as the target machine. Now I'm 600 miles away and all I'm getting is "Connection refused" again.
Is the correct method to use the ip address assigned by the router or the ip address at the location, i.e. the ip address assigned by the ISP that is outside the router? I must me missing something simple here, since I'm not having any luck and remote administration is something a lot of people are doing. |
|
|||
|
On Sun, 01 Nov 2009 17:16:02 +0000, pilotgi wrote:
> All my previous attempts at connecting through ssh was when my laptop > was using the same router as the target machine. Now I'm 600 miles away > and all I'm getting is "Connection refused" again. > > Is the correct method to use the ip address assigned by the router or > the ip address at the location, i.e. the ip address assigned by the ISP > that is outside the router? > > I must me missing something simple here, since I'm not having any luck > and remote administration is something a lot of people are doing. The address you're using (192.168.1.2) is part of a special address block that is not routable on the Internet because it's intended to be used on a private network. What you'll need to do from outside your router is use port forwarding on the router to redirect port 22 (which is the default - if you've changed the default, which is generally recommended, you'll need to redirect that port) from your router to the machine in question. Then what you do is connect to the address assigned to your router. The router will forward the requests to the system designated in the router's configuration. There are three address blocks that are for private networks: 10.0.0.0/8 172.16.0.0/12 192.168.0.0/16 (The number after the / is the number of bits in the netmask - see http://en.wikipedia.org/wiki/IP_addr...vate_addresses for more information about this) Jim -- Jim Henderson openSUSE Forums Moderator |
|
|||
|
Quote:
Quote:
|
|
|||
|
I tried ssh user@99.23.42.220 and got: Connection timed out.
|
|
|||
|
Quote:
Quote:
Thanks for your input. |
|
||||
|
Quote:
If you dodn't get a list of open ports, try something like nmap -PN <remote ip address> see the man page for some examples. http://www.rootshell.be/ click the register link at the bottom or http://www.red-pill.eu/freeunix.shtml for others. Once you have an account to log into, then you can ssh from your home machine to that shell account, then back to you home machine to test it all works. Or if you have a cellphone that can run applications find a ssh client you can use (I use midpssh on my blackberry) to test. -- Cheers Malcolm °¿° (Linux Counter #276890) SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.27.29-0.1-default up 22:10, 2 users, load average: 0.22, 0.33, 0.28 GPU GeForce 8600 GTS Silent - CUDA Driver Version: 190.18 |
|
|||
|
The result of nmap -PN myipaddress (assigned by my isp for today):
Not shown: 999 filtered ports PORT........STATE...SERVICE 50001/tcp open unknown I don't know why it's not showing port 22, since that's the port I opened in the firewall on my router. I also allowed secure shell server. I did have some success connecting with ssh on my own network between my two computers. Strangely, I can connect from my laptop to my desktop, but not the other way. After success with ssh, I tried using KRDC so I could see the gui on the remote machine, but I got a "Server couldn't be found" error. Does anyone know how I can use ssh to see and manipulate the gui on a remote machine? |
![]() |
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|