Hi ,
I’m having some trouble setting up ssh on Suse 11.2 x64
Login with pubkey and/or password works fine over lan :
slack@mint ~ $ ssh mick@192.168.2.5
Last login: Fri Apr 2 16:44:50 2010 from 192.168.2.14
Have a lot of fun...
mick@linux-s1s2:~> exit
logout
However , when I try to login with my public IP the pubkey authentication is refused.When I enter the password it is also refused , even though it is the correct password.
slack@mint ~ $ ssh mick@XX.XX.XX.XX -vv
OpenSSH_5.1p1 Debian-5ubuntu1, OpenSSL 0.9.8g 19 Oct 2007
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug2: ssh_connect: needpriv 0
debug1: Connecting to XX.XX.XX.XX [XX.XX.XX.XX] port 22.
debug1: Connection established.
debug2: key_type_from_name: unknown key type '-----BEGIN'
debug2: key_type_from_name: unknown key type '-----END'
debug1: identity file /home/slack/.ssh/id_rsa type 1
debug1: Checking blacklist file /usr/share/ssh/blacklist.RSA-2048
debug1: Checking blacklist file /etc/ssh/blacklist.RSA-2048
debug1: Remote protocol version 2.0, remote software version dropbear_0.46
debug1: no match: dropbear_0.46
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_5.1p1 Debian-5ubuntu1
debug2: fd 3 setting O_NONBLOCK
debug1: SSH2_MSG_KEXINIT sent
#snip#
debug2: mac_setup: found hmac-md5
debug1: kex: server->client 3des-cbc hmac-md5 none
debug2: mac_setup: found hmac-md5
debug1: kex: client->server 3des-cbc hmac-md5 none
debug2: dh_gen_key: priv key bits set: 188/384
debug2: bits set: 498/1024
debug1: sending SSH2_MSG_KEXDH_INIT
debug1: expecting SSH2_MSG_KEXDH_REPLY
debug1: Host 'XX.XX.XX.XX' is known and matches the RSA host key.
debug1: Found key in /home/slack/.ssh/known_hosts:2
debug2: bits set: 530/1024
debug1: ssh_rsa_verify: signature correct
debug2: kex_derive_keys
debug2: set_newkeys: mode 1
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug2: set_newkeys: mode 0
debug1: SSH2_MSG_NEWKEYS received
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug2: service_accept: ssh-userauth
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug2: key: /home/slack/.ssh/id_rsa (0xb98afa38)
debug1: Authentications that can continue: publickey,password
debug1: Next authentication method: publickey
debug1: Offering public key: /home/slack/.ssh/id_rsa
debug2: we sent a publickey packet, wait for reply
debug1: Authentications that can continue: publickey,password
debug2: we did not send a packet, disable method
debug1: Next authentication method: password
mick@XX.XX.XX.XX's password:
debug2: we sent a password packet, wait for reply
debug1: Authentications that can continue: publickey,password
Permission denied, please try again.
mick@XX.XX.XX.XX's password:
debug2: we sent a password packet, wait for reply
debug1: Authentications that can continue: publickey,password
Permission denied, please try again.
mick@XX.XX.XX.XX's password:
debug2: we sent a password packet, wait for reply
debug1: Authentications that can continue: publickey,password
debug2: we did not send a packet, disable method
debug1: No more authentication methods to try.
Permission denied (publickey,password).
slack@mint ~ $
The only changes I have made in /etc/ssh/sshd_config are:
PermitRootLogin no
RSAAuthentication yes
PubkeyAuthentication yes
AuthorizedKeysFile .ssh/authorized_keys
I’ve also swapped
PasswordAuthentication no
to
PasswordAuthentication yes
Deleted .ssh/known_hosts on the client , still no joy.
netstat -antp | grep ssh
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 30241/sshd
tcp 0 0 :::22 :::* LISTEN 30241/sshd
I’m baffled , I set this up at home on my pc and got ssh & FreeNX working over wan in a half hour without any special fiddling around , also Suse 11.2 x64.
I’m probably missing something simple , can someone help here , I’m going home Sunday & I was hoping to have this setup working by then.
BTW , grc/shields up port is open
canyouseeme.org/ port is open
Thanks