Client can't connect to the default port, but can connect to other ports
From: Namit (namityadav_at_gmail.com)
Date: 08/18/05
- Next message: Petr Pisar: "Re: FTP transfer on SSH tunnel"
- Previous message: Darren Tucker: "Re: PAM changing user name"
- Next in thread: Richard E. Silverman: "Re: Client can't connect to the default port, but can connect to other ports"
- Reply: Richard E. Silverman: "Re: Client can't connect to the default port, but can connect to other ports"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: 18 Aug 2005 10:18:42 -0700
I am not able to connect to the sshd running on default port, but if I
run a new sshd at a specific port, I can connect to it. Here are debug
outputs from the two calls. syslogs don't show anything either. Can
someone please help me solve this problem.
=================
ps -ef
=================
[namit@namit-pc ~/.ssh]$ ps -ef | grep sshd
root 5114 1 0 Aug12 ? 00:00:05 /usr/sbin/sshd
root 19131 1 0 Aug17 ? 00:00:00 /usr/sbin/sshd -p 10111
namit 30922 19148 0 09:52 pts/6 00:00:00 grep sshd
[namit@namit-pc ~/.ssh]$
=================
Default port
=================
[namit@namit-pc ~/.ssh]$ ssh -v localhost
OpenSSH_3.6.1p2, SSH protocols 1.5/2.0, OpenSSL 0x0090701f
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug1: Rhosts Authentication disabled, originating port will not be
trusted.
debug1: Connecting to localhost [127.0.0.1] port 22.
debug1: Connection established.
debug1: identity file /home/namit/.ssh/identity type -1
debug1: identity file /home/namit/.ssh/id_rsa type -1
debug1: identity file /home/namit/.ssh/id_dsa type 2
debug1: Remote protocol version 1.99, remote software version
OpenSSH_3.6.1p2
debug1: match: OpenSSH_3.6.1p2 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_3.6.1p2
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-cbc hmac-md5 none
debug1: kex: client->server aes128-cbc hmac-md5 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
debug1: Host 'localhost' is known and matches the RSA host key.
debug1: Found key in /home/namit/.ssh/known_hosts:1
debug1: ssh_rsa_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue:
publickey,password,keyboard-interactive
debug1: Next authentication method: publickey
debug1: Trying private key: /home/namit/.ssh/identity
debug1: Trying private key: /home/namit/.ssh/id_rsa
debug1: Offering public key: /home/namit/.ssh/id_dsa
debug1: Server accepts key: pkalg ssh-dss blen 433 lastkey 0x8e4ae00
hint 2
debug1: read PEM private key done: type DSA
debug1: Authentication succeeded (publickey).
debug1: channel 0: new [client-session]
debug1: Entering interactive session.
debug1: channel 0: request pty-req
debug1: Requesting X11 forwarding with authentication spoofing.
debug1: channel 0: request x11-req
debug1: Requesting authentication agent forwarding.
debug1: channel 0: request auth-agent-req@openssh.com
debug1: channel 0: request shell
debug1: channel 0: open confirm rwindow 0 rmax 32768
debug1: channel_free: channel 0: client-session, nchannels 1
Connection to localhost closed by remote host.
Connection to localhost closed.
debug1: Transferred: stdin 0, stdout 0, stderr 81 bytes in 0.3 seconds
debug1: Bytes per second: stdin 0.0, stdout 0.0, stderr 317.3
debug1: Exit status -1
=================
Specific port
=================
[namit@namit-pc ~/.ssh]$ ssh -v localhost -p 10111
OpenSSH_3.6.1p2, SSH protocols 1.5/2.0, OpenSSL 0x0090701f
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug1: Rhosts Authentication disabled, originating port will not be
trusted.
debug1: Connecting to localhost [127.0.0.1] port 10111.
debug1: Connection established.
debug1: identity file /home/namit/.ssh/identity type -1
debug1: identity file /home/namit/.ssh/id_rsa type -1
debug1: identity file /home/namit/.ssh/id_dsa type 2
debug1: Remote protocol version 1.99, remote software version
OpenSSH_3.6.1p2
debug1: match: OpenSSH_3.6.1p2 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_3.6.1p2
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-cbc hmac-md5 none
debug1: kex: client->server aes128-cbc hmac-md5 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
debug1: Host 'localhost' is known and matches the RSA host key.
debug1: Found key in /home/namit/.ssh/known_hosts:1
debug1: ssh_rsa_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue:
publickey,password,keyboard-interactive
debug1: Next authentication method: publickey
debug1: Trying private key: /home/namit/.ssh/identity
debug1: Trying private key: /home/namit/.ssh/id_rsa
debug1: Offering public key: /home/namit/.ssh/id_dsa
debug1: Server accepts key: pkalg ssh-dss blen 433 lastkey 0x8ac79d0
hint 2
debug1: read PEM private key done: type DSA
debug1: Authentication succeeded (publickey).
debug1: channel 0: new [client-session]
debug1: Entering interactive session.
debug1: channel 0: request pty-req
debug1: Requesting X11 forwarding with authentication spoofing.
debug1: channel 0: request x11-req
debug1: Requesting authentication agent forwarding.
debug1: channel 0: request auth-agent-req@openssh.com
debug1: channel 0: request shell
debug1: channel 0: open confirm rwindow 0 rmax 32768
- Next message: Petr Pisar: "Re: FTP transfer on SSH tunnel"
- Previous message: Darren Tucker: "Re: PAM changing user name"
- Next in thread: Richard E. Silverman: "Re: Client can't connect to the default port, but can connect to other ports"
- Reply: Richard E. Silverman: "Re: Client can't connect to the default port, but can connect to other ports"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|