Ethical Hacking

Learn to find vulnerabilities before the bad guys do! Gain real world hands on hacking experience in our state of the art hacking lab. Course designed and taught by expert instructors with years of penetration testing experience. 12 student maximum in every class. Certification attempt included in every package.
Computer Forensics Training at InfoSec Institute

Gain the in-demand skills of a certified computer examiner, learn to recover trace data left behind by fraud, theft, and cybercrime perpetrators. Discover the source of computer crime and abuse at your organization so that it never happens again. All of our class sizes are guaranteed to be 12 students or less to facilitate one-on-one interaction with one of our expert instructors.




Network Security Secure-Shell
[Top] [All Lists]

Re: SSH just works in internal network, not over the internet

Subject: Re: SSH just works in internal network, not over the internet
Date: Tue, 11 Jul 2006 13:28:14 +0200
Hi Manu,

Any chance you can get a look at the server log, there's 138 bytes
sent to stderr and it would be useful to see what that was.

It would also be handy to see the entire client side log (minus ip's
of course) then we can see the server/client versions and the
handshake process.

Regards,

Nathan

On 7/9/06, Manu <m_lists@fastmail.fm> wrote:
Hi all,

I'm having a very strange problem and - surely - I think I've tried anything
possible to solve it.

Situation:
I can't connect to an ssh server on the internet. I've tried with multiple
ones (university, my server, a friends one...), but it always fails. Commands
are right, this isn't the thing.
Anyway, connecting to my server within in my personal network (e.g. ssh
me@192.168.2.2) works like a charm.

Done work:
I've tried this thing with two routers, a U.S. Robotics and currently I'm
using a Linksys WRT54GS. Nothing different. I've also tried with a "live-cd"
Knoppix. Nothing different.
Strange thing: I'm using Ubuntu Dapper (ssh -V: OpenSSH_4.2p1 Debian-7ubuntu3,
OpenSSL 0.9.8a 11 Oct 2005). When I try to connect with PuTTY (aptitude
install putty) everything is fine and I *can* connect. Also no problem when
connecting from Windows through PuTTY.

Log:
Everything seems fine, I'm entering my password and here it goes:
~~~
 user@xxx.de's password:
 debug2: we sent a password packet, wait for reply
 debug1: Authentication succeeded (password).
 debug1: channel 0: new [client-session]
 debug2: channel 0: send open
 debug1: Entering interactive session.
 debug2: callback start
 debug2: client_session2_setup: id 0
 debug2: channel 0: request pty-req confirm 0
 debug1: Sending environment.
 debug1: Sending env LANG = de_DE.UTF-8
 debug2: channel 0: request env confirm 0
 debug2: channel 0: request shell confirm 0
 debug2: fd 3 setting TCP_NODELAY
 debug2: callback done
 debug2: channel 0: open confirm rwindow 0 rmax 32768
~~~

Then nothing happens for about 10 to 15 minutes until this information shows
up.
~~~
 debug1: channel 0: free: client-session, nchannels 1
 Read from remote host xxx.de: Connection timed out
 Connection to xxx.de closed.
 debug1: Transferred: stdin 0, stdout 0, stderr 138 bytes in 1215.0 seconds
 debug1: Bytes per second: stdin 0.0, stdout 0.0, stderr 0.1
 debug1: Exit status -1
~~~

Is there anyone who can provide some tips and is willing to help me? :-)

--
Kind regards,
Manu


<Prev in Thread] Current Thread [Next in Thread>