Networking Forums

Networking Forums > Computer Networking > Linux Networking > SSH ( Connection closed by -ip- )

Reply
Thread Tools Display Modes

SSH ( Connection closed by -ip- )

 
 
WINUX
Guest
Posts: n/a

 
      01-06-2007, 07:13 PM
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
(E-Mail Removed)
sshd: PID 2592: debug1: kex: server->client aes128-cbc hmac-md5
(E-Mail Removed)
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

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
telnet and ssh: Connection closed by foreign host sgxing@gmail.com Linux Networking 3 07-21-2007 06:50 PM
A Strange problem - 421 Service not available, remote server has closed connection vince Linux Networking 4 03-14-2007 06:40 PM
A Strange - 421 Service not available, remote server has closed connection - problem for Linux ftp client. vince Linux Networking 0 03-09-2007 09:35 PM
ASP.NET - The state server has closed an expired TCP/IP connection dm3281 Windows Networking 0 10-14-2006 06:45 PM
ssh connection closed after successful authentication Eggert Ehmke Linux Networking 0 02-28-2006 08:00 PM



1 2 3 4 5 6 7 8 9 10 11