Am Sunday 11 November 2012 schrieb staticsafe: > On 11/11/2012 14:39, Rainer Dorsch wrote: > > Hello, > > > > I have on a Debian squeeze server an issue, that I can only login as user > > rd, not as user gpxrecorder, although there seems to be no difference in > > the accounts: > > > > bokomoko:~# diff ~rd/.ssh/authorized_keys > > ~gpxrecorder/.ssh/authorized_hosts bokomoko:~# ls -l > > ~rd/.ssh/authorized_keys ~gpxrecorder/.ssh/authorized_hosts -rw-r--r-- 1 > > gpxrecorder gpxrecorder 222 Nov 11 19:33 > > /home/gpxrecorder/.ssh/authorized_hosts > > -rw-r--r-- 1 rd rd 222 Dec 30 2006 > > /home/rd/.ssh/authorized_keys > > bokomoko:~# ls -ld ~rd/.ssh ~gpxrecorder/.ssh > > drwx------ 2 gpxrecorder gpxrecorder 4096 Nov 11 19:33 > > /home/gpxrecorder/.ssh drwx------ 2 rd rd 4096 Dec 25 > > 2008 /home/rd/.ssh bokomoko:~# ls -ld ~rd ~gpxrecorder > > drwxr-x--x 5 gpxrecorder gpxrecorder 4096 Nov 11 19:33 /home/gpxrecorder > > drwxr-x--x 52 rd rd 4096 Nov 10 15:32 /home/rd > > bokomoko:~# > > > > For gpxrecorder > > > > debug1: Server accepts key: pkalg ssh-rsa blen 149 > > > > does not show up. > > > > Any hint why the two accounts might behave differently are very welcome. > > > > Many thanks, > > Rainer > > Can you try doing `ssh -vvv gpxrecorder@hostname` and pastie the output? > Also check for any errors on the squeeze server's /var/log/auth.log.
An ssh agent is running and has the keys rd@blackbox:~/SW.nobackup/navit-clean-build/navit$ ssh-add -l 1024 c5:41:03:c6:ef:9e:d3:e4:39:dc:74:88:2b:78:bb:05 /home/rd/.ssh/id_rsa (RSA) rd@blackbox:~/SW.nobackup/navit-clean-build/navit$ ssh -vvv gpxrecor...@bokomoko.de OpenSSH_6.0p1 Debian-3, OpenSSL 1.0.1c 10 May 2012 debug1: Reading configuration data /home/rd/.ssh/config debug1: Reading configuration data /etc/ssh/ssh_config debug1: /etc/ssh/ssh_config line 19: Applying options for * debug2: ssh_connect: needpriv 0 debug1: Connecting to bokomoko.de [87.118.104.111] port 22. debug1: Connection established. debug3: Incorrect RSA1 identifier debug3: Could not load "/home/rd/.ssh/id_rsa" as a RSA1 public key debug1: identity file /home/rd/.ssh/id_rsa type -1 debug1: identity file /home/rd/.ssh/id_rsa-cert type -1 debug1: identity file /home/rd/.ssh/id_dsa type -1 debug1: identity file /home/rd/.ssh/id_dsa-cert type -1 debug1: identity file /home/rd/.ssh/id_ecdsa type -1 debug1: identity file /home/rd/.ssh/id_ecdsa-cert type -1 debug1: Remote protocol version 2.0, remote software version OpenSSH_5.5p1 Debian-6+squeeze2 debug1: match: OpenSSH_5.5p1 Debian-6+squeeze2 pat OpenSSH_5* debug1: Enabling compatibility mode for protocol 2.0 debug1: Local version string SSH-2.0-OpenSSH_6.0p1 Debian-3 debug2: fd 3 setting O_NONBLOCK debug3: load_hostkeys: loading entries for host "bokomoko.de" from file "/home/rd/.ssh/known_hosts" debug3: load_hostkeys: found key type RSA in file /home/rd/.ssh/known_hosts:334 debug3: load_hostkeys: loaded 1 keys debug3: order_hostkeyalgs: prefer hostkeyalgs: ssh-rsa-cert- v...@openssh.com,ssh-rsa-cert-...@openssh.com,ssh-rsa debug1: SSH2_MSG_KEXINIT sent debug1: SSH2_MSG_KEXINIT received debug2: kex_parse_kexinit: ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2- nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange- sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1 debug2: kex_parse_kexinit: ssh-rsa-cert-...@openssh.com,ssh-rsa-cert- v...@openssh.com,ssh-rsa,ecdsa-sha2-nistp256-cert-...@openssh.com,ecdsa-sha2- nistp384-cert-...@openssh.com,ecdsa-sha2-nistp521-cert-...@openssh.com,ssh- dss-cert-...@openssh.com,ssh-dss-cert-...@openssh.com,ecdsa-sha2- nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,ssh-dss debug2: kex_parse_kexinit: aes128-ctr,aes192-ctr,aes256- ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192- cbc,aes256-cbc,arcfour,rijndael-...@lysator.liu.se debug2: kex_parse_kexinit: aes128-ctr,aes192-ctr,aes256- ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192- cbc,aes256-cbc,arcfour,rijndael-...@lysator.liu.se debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,umac...@openssh.com,hmac- sha2-256,hmac-sha2-256-96,hmac-sha2-512,hmac-sha2-512-96,hmac-ripemd160,hmac- ripemd...@openssh.com,hmac-sha1-96,hmac-md5-96 debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,umac...@openssh.com,hmac- sha2-256,hmac-sha2-256-96,hmac-sha2-512,hmac-sha2-512-96,hmac-ripemd160,hmac- ripemd...@openssh.com,hmac-sha1-96,hmac-md5-96 debug2: kex_parse_kexinit: none,z...@openssh.com,zlib debug2: kex_parse_kexinit: none,z...@openssh.com,zlib debug2: kex_parse_kexinit: debug2: kex_parse_kexinit: debug2: kex_parse_kexinit: first_kex_follows 0 debug2: kex_parse_kexinit: reserved 0 debug2: kex_parse_kexinit: diffie-hellman-group-exchange-sha256,diffie-hellman- group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1 debug2: kex_parse_kexinit: ssh-rsa,ssh-dss debug2: kex_parse_kexinit: aes128-ctr,aes192-ctr,aes256- ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192- cbc,aes256-cbc,arcfour,rijndael-...@lysator.liu.se debug2: kex_parse_kexinit: aes128-ctr,aes192-ctr,aes256- ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192- cbc,aes256-cbc,arcfour,rijndael-...@lysator.liu.se debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,umac...@openssh.com,hmac- ripemd160,hmac-ripemd...@openssh.com,hmac-sha1-96,hmac-md5-96 debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,umac...@openssh.com,hmac- ripemd160,hmac-ripemd...@openssh.com,hmac-sha1-96,hmac-md5-96 debug2: kex_parse_kexinit: none,z...@openssh.com debug2: kex_parse_kexinit: none,z...@openssh.com debug2: kex_parse_kexinit: debug2: kex_parse_kexinit: debug2: kex_parse_kexinit: first_kex_follows 0 debug2: kex_parse_kexinit: reserved 0 debug2: mac_setup: found hmac-md5 debug1: kex: server->client aes128-ctr hmac-md5 none debug2: mac_setup: found hmac-md5 debug1: kex: client->server aes128-ctr hmac-md5 none debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP debug2: dh_gen_key: priv key bits set: 127/256 debug2: bits set: 483/1024 debug1: SSH2_MSG_KEX_DH_GEX_INIT sent debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY debug1: Server host key: RSA 08:53:1d:6f:d5:b2:3a:78:2b:27:ca:e1:9f:bf:26:95 debug3: load_hostkeys: loading entries for host "bokomoko.de" from file "/home/rd/.ssh/known_hosts" debug3: load_hostkeys: found key type RSA in file /home/rd/.ssh/known_hosts:334 debug3: load_hostkeys: loaded 1 keys debug3: load_hostkeys: loading entries for host "87.118.104.111" from file "/home/rd/.ssh/known_hosts" debug3: load_hostkeys: found key type RSA in file /home/rd/.ssh/known_hosts:327 debug3: load_hostkeys: loaded 1 keys debug1: Host 'bokomoko.de' is known and matches the RSA host key. debug1: Found key in /home/rd/.ssh/known_hosts:334 debug2: bits set: 503/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: Roaming not allowed by server debug1: SSH2_MSG_SERVICE_REQUEST sent debug2: service_accept: ssh-userauth debug1: SSH2_MSG_SERVICE_ACCEPT received debug2: key: /home/rd/.ssh/id_rsa (0xb916dab0) debug2: key: /home/rd/.ssh/id_rsa ((nil)) debug2: key: /home/rd/.ssh/id_dsa ((nil)) debug2: key: /home/rd/.ssh/id_ecdsa ((nil)) debug1: Authentications that can continue: publickey,password debug3: start over, passed a different list publickey,password debug3: preferred gssapi-keyex,gssapi-with-mic,publickey,keyboard- interactive,password debug3: authmethod_lookup publickey debug3: remaining preferred: keyboard-interactive,password debug3: authmethod_is_enabled publickey debug1: Next authentication method: publickey debug1: Offering RSA public key: /home/rd/.ssh/id_rsa debug3: send_pubkey_test debug2: we sent a publickey packet, wait for reply debug1: Authentications that can continue: publickey,password debug1: Trying private key: /home/rd/.ssh/id_rsa debug1: key_parse_private_pem: PEM_read_PrivateKey failed debug1: read PEM private key done: type <unknown> Enter passphrase for key '/home/rd/.ssh/id_rsa': No entry in /var/log/auth.log until here. Thanks, Rainer -- Rainer Dorsch http://bokomoko.de/ -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/201211112244.49966...@bokomoko.de