Re: sshd not working

Greg Higgins <[email protected]>
Newsgroups gmane.org.user-groups.nmlug
Message-ID <[email protected]>
Hmmm. Is it trying to process the address as an IPv6 address?

Try turning IPv6 off.

/etc/modprobe.d/aliases

alias net-pf-10 ipv6 off
alias net-pf-10 off
alias ipv6 off
#alias net-pf-10 ipv6



 > debug1: Bind to port 2224 on ::.


Aaron Birenboim wrote:
> I'm doing a new Ubuntu 7.1 install, and sshd seems to be failing to bind
> to the listening socket.
> 
> Here's what happens when I try to run sshd with debug:
> 
> aaron@earwig:/etc/ssh$ sudo /usr/sbin/sshd -e -ddd -p 2224
> debug2: load_server_config: filename /etc/ssh/sshd_config
> debug2: load_server_config: done config len = 628
> debug2: parse_server_config: config /etc/ssh/sshd_config len 628
> debug3: /etc/ssh/sshd_config:5 setting Port 22
> debug3: /etc/ssh/sshd_config:9 setting Protocol 2
> debug3: /etc/ssh/sshd_config:11 setting HostKey /etc/ssh/ssh_host_rsa_key
> debug3: /etc/ssh/sshd_config:12 setting HostKey /etc/ssh/ssh_host_dsa_key
> debug3: /etc/ssh/sshd_config:14 setting UsePrivilegeSeparation yes
> debug3: /etc/ssh/sshd_config:17 setting KeyRegenerationInterval 3600
> debug3: /etc/ssh/sshd_config:18 setting ServerKeyBits 768
> debug3: /etc/ssh/sshd_config:21 setting SyslogFacility AUTH
> debug3: /etc/ssh/sshd_config:22 setting LogLevel INFO
> debug3: /etc/ssh/sshd_config:25 setting LoginGraceTime 120
> debug3: /etc/ssh/sshd_config:26 setting PermitRootLogin no
> debug3: /etc/ssh/sshd_config:27 setting StrictModes yes
> debug3: /etc/ssh/sshd_config:29 setting RSAAuthentication yes
> debug3: /etc/ssh/sshd_config:30 setting PubkeyAuthentication yes
> debug3: /etc/ssh/sshd_config:34 setting IgnoreRhosts yes
> debug3: /etc/ssh/sshd_config:36 setting RhostsRSAAuthentication no
> debug3: /etc/ssh/sshd_config:38 setting HostbasedAuthentication no
> debug3: /etc/ssh/sshd_config:43 setting PermitEmptyPasswords no
> debug3: /etc/ssh/sshd_config:50 setting PasswordAuthentication no
> debug3: /etc/ssh/sshd_config:62 setting X11Forwarding yes
> debug3: /etc/ssh/sshd_config:63 setting X11DisplayOffset 10
> debug3: /etc/ssh/sshd_config:64 setting PrintMotd no
> debug3: /etc/ssh/sshd_config:65 setting PrintLastLog yes
> debug3: /etc/ssh/sshd_config:66 setting TCPKeepAlive yes
> debug3: /etc/ssh/sshd_config:73 setting AcceptEnv LANG LC_*
> debug3: /etc/ssh/sshd_config:75 setting Subsystem sftp 
> /usr/lib/openssh/sftp-server
> debug3: /etc/ssh/sshd_config:77 setting UsePAM yes
> debug1: sshd version OpenSSH_4.6p1 Debian-5ubuntu0.1
> debug1: private host key: #0 type 0 RSA1
> debug3: Not a RSA1 key file /etc/ssh/ssh_host_dsa_key.
> debug1: read PEM private key done: type DSA
> debug1: private host key: #1 type 2 DSA
> debug1: rexec_argv[0]='/usr/sbin/sshd'
> debug1: rexec_argv[1]='-e'
> debug1: rexec_argv[2]='-ddd'
> debug1: rexec_argv[3]='-p'
> debug1: rexec_argv[4]='2224'
> debug2: fd 3 setting O_NONBLOCK
> debug1: Bind to port 2224 on ::.
> Server listening on :: port 2224.
> debug2: fd 4 setting O_NONBLOCK
> debug1: Bind to port 2224 on 0.0.0.0.
> Bind to port 2224 on 0.0.0.0 failed: Address already in use.
> 
> 
> This has the same error no matter what port I try, including 22.
> 
> 
> Here's a working (debian) sshd:
> 
> raven:/etc/ssh> sudo /usr/sbin/sshd -e -ddd -p 2223
> debug2: read_server_config: filename /etc/ssh/sshd_config
> debug1: sshd version OpenSSH_3.8.1p1 Debian-8.sarge.6
> debug3: Not a RSA1 key file /etc/ssh/ssh_host_rsa_key.
> debug1: read PEM private key done: type RSA
> debug1: private host key: #0 type 1 RSA
> debug3: Not a RSA1 key file /etc/ssh/ssh_host_dsa_key.
> debug1: read PEM private key done: type DSA
> debug1: private host key: #1 type 2 DSA
> socket: Address family not supported by protocol
> debug1: Bind to port 2223 on 0.0.0.0.
> Server listening on 0.0.0.0 port 2223.
> 
> Any idea what might be causing this to fail?
> 
>                   aaron
> _______________________________________________
> NMLUG mailing list
> [email protected]
> http://lists.b9.com/cgi-bin/mailman/listinfo/nmlug
> 
_______________________________________________
NMLUG mailing list
[email protected]
http://lists.b9.com/cgi-bin/mailman/listinfo/nmlug
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.