[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

how to test local ssh server without asking external help

Hi guys,
I have a question about my ssh server. My network consists of a router
implementing NAT and 2 computers in LAN. I have the ssh server on my
desktop and try to access it from my laptop. When I ssh to the server
using its private address all works like a charm but when I try to use
the external IP, it doesn't. And yes, the router has port forwarding
enabled for that port. 

The error I get is:

pablo@mio:~$ ssh -vvv XXXXX.joe.nu
OpenSSH_5.1p1 Debian-5, OpenSSL 0.9.8g 19 Oct 2007
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug2: ssh_connect: needpriv 0
debug1: Connecting to XXXXX.joe.nu [] port 22.
debug1: Connection established.
debug1: identity file /home/pablo/.ssh/identity type -1
debug1: identity file /home/pablo/.ssh/id_rsa type -1
debug1: identity file /home/pablo/.ssh/id_dsa type -1
ssh_exchange_identification: Connection closed by remote host

I don't get the error if I use the private IP:

pablo@mio:~$ ssh
pablo@'s password: 
Linux kaziem 2.6.26-1-686 #1 SMP Sat Jan 10 18:29:31 UTC 2009 i686

The programs included with the Debian GNU/Linux system are free
software; the exact distribution terms for each program are described
in the individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
You have mail.
Last login: Tue Mar 31 13:43:46 2009 from

Any ideas why: ssh would work, but ssh external.ip.here
doesn't? I can't test if my ssh server works (or web server, or
ddbb server) except if I ask for external help? 

Thank you in advance,

~ Pablo

Reply to: