Hi all,

yesterday I configured ssh and sshd.

I have two computers
both act as server and client.
PC1= a pc behind the firewall which does not allow incoming connections
PC2= a notebook that I take with me @ home

I wrote a script so PC1 creates a reverse tunnel to PC2 (where the port
on the firewall is open) whenever needed(automatically gets the good
ip).
Within that tunnel I can connect to SSHD on PC1.

On PC1, I installed a public key, so PC1 (inside the network) can
connect to PC2 (outside the network) without someone needed to type in
the password.

I tried the script locally, and everything works fine.(tunnel gets
created, I can connect through the tunnel)
Now I'm @ home and I get the following(The tunnel never gets created...
I think it has something to do with the authentication...but everything
worked @ first )
This is what is logged in the /var/log/messages file on PC2(the
notebook where PC1 should connect to, to create the tunnel) (Logging
DEBUG):
Code:
sshd: PID 3624: debug1: fd 4 clearing O_NONBLOCK
sshd: PID 3624: debug1: Forked child 2284.
sshd: PID 2284: debug1: rexec start in 4 out 4 newsock 4 pipe 6 sock 7
sshd: PID 2284: debug1: inetd sockets after dupping: 3, 3
sshd: PID 2284: Connection from 111.111.111.111 port 53125
sshd: PID 2284: debug1: Client protocol version 2.0; client software
version OpenSSH_4.3
sshd: PID 2284: debug1: match: OpenSSH_4.3 pat OpenSSH*
sshd: PID 2284: debug1: Enabling compatibility mode for protocol 2.0
sshd: PID 2284: debug1: Local version string SSH-1.99-OpenSSH_4.5
sshd: PID 2592: debug1: list_hostkey_types: ssh-rsa,ssh-dss
sshd: PID 2592: debug1: SSH2_MSG_KEXINIT sent
sshd: PID 2592: debug1: SSH2_MSG_KEXINIT received
sshd: PID 2592: debug1: kex: client->server aes128-cbc hmac-md5
zlib@openssh.com
sshd: PID 2592: debug1: kex: server->client aes128-cbc hmac-md5
zlib@openssh.com
sshd: PID 2592: debug1: SSH2_MSG_KEX_DH_GEX_REQUEST received
sshd: PID 2592: debug1: SSH2_MSG_KEX_DH_GEX_GROUP sent
sshd: PID 2592: debug1: expecting SSH2_MSG_KEX_DH_GEX_INIT
sshd: PID 2592: debug1: SSH2_MSG_KEX_DH_GEX_REPLY sent
sshd: PID 2592: debug1: SSH2_MSG_NEWKEYS sent
sshd: PID 2592: debug1: expecting SSH2_MSG_NEWKEYS
sshd: PID 2592: Connection closed by 111.111.111.111
sshd: PID 2592: debug1: do_cleanup
sshd: PID 2284: debug1: do_cleanup
Is this a server problem or a client problem?
And how can I fix it.
I dont have the log files of PC1 because Im not at that location @ the
moment.

Help is very appreciated!

Greetings