I can’t login to SSH on localhost or from a remote OS.
The connection is refused after multiple attempts at password authentication (but my .ssh/known_hosts file does get a key placed into it on my first unique attempt to connect).
I’ve banged my head against the wall trying to determine what’s wrong, but I am too new at this to be of any use to myself. Based on my research online, I’m including some information I hope will be useful to better informed folk:
This is the result of “sudo /usr/sbin/sshd -d”
debug1: sshd version OpenSSH_5.0p1
debug1: private host key: #0 type 0 RSA1
debug1: read PEM private key done: type RSA
debug1: private host key: #1 type 1 RSA
debug1: read PEM private key done: type DSA
debug1: private host key: #2 type 2 DSA
debug1: rexec_argv[0]=‘/usr/sbin/sshd’
debug1: rexec_argv[1]=‘-d’
debug1: Bind to port 22 on 0.0.0.0.
Bind to port 22 on 0.0.0.0 failed: Address already in use.
Cannot bind any address.
In ssh_config the following lines are uncommented:
Port 22 Protocol 2
And here is an extract of key uncommented lines in sshd_config:
Port 22
ListenAddress 0.0.0.0Protocol 2
HostKey /etc/ssh/ssh_host_key
HostKey /etc/ssh/ssh_host_rsa_key
HostKey /etc/ssh/ssh_host_dsa_keyAuthentication:
RSAAuthentication yes
for nx
PubkeyAuthentication yes
AuthorizedKeysFile authorized_keys2PasswordAuthentication yes
PermitEmptyPasswords noChallengeResponseAuthentication yes
UsePAM yes
X11Forwarding yesAllowUsers nx
AllowGroups remotessh nx
GatewayPorts yes
X11DisplayOffset 50
AllowTcpForwarding yes
Compression yes
MaxAuthTries 6
PasswordAuthentication yes
PermitRootLogin yes
PrintMotd yes
AllowUsers nx
AllowGroups remotessh nx
GatewayPorts yes
X11DisplayOffset 50
AllowTcpForwarding yes
Compression yes
MaxAuthTries 6
PermitRootLogin yes
PrintMotd yes
In response to “ps ax | grep [s]shd” I get
3271 ? Ss 0:00 /usr/sbin/sshd -o PidFile=/var/run/sshd.init.pid
And in response to “netstat -ln | grep 22” I get
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN
And finally in response to “/sbin/ifconfig” I get
eth0 Link encap:Ethernet HWaddr 00:1E:C2:0A:86:8A
inet addr:192.168.1.10 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::21e:c2ff:fe0a:868a/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:8622 errors:0 dropped:0 overruns:0 frame:0
TX packets:4955 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2382117 (2.2 Mb) TX bytes:901929 (880.7 Kb)
Interrupt:17lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:1086 errors:0 dropped:0 overruns:0 frame:0
TX packets:1086 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:196851 (192.2 Kb) TX bytes:196851 (192.2 Kb)
I am too new at this to see the problem if one is revealed by these diagnostics. I hope someone can help with this.