Hallo liste, ich dreh gleich durch. Versuche seit 2 Stunden, mir ein priv/pub keypaar einzurichten, damit ich mich bei meinem server authentifizieren kann! Problem an der sache: Ich habe mir für meine Windoze-Maschine einen public und private key erstellt. vom public key liegt eine kopie im verzeichnis /root/.ssh mit dem namen "authorized_keys" vor, also wie beschrieben. Wenn ich nun versuche, mich mit putty und meinem private key anzumelden, bekomme ich nur die meldung server refused our key..... und kann mich dann ganz normal über benutzerpasswort einlogen. sshd gibt bei seinem start eine fehlermeldungen an, d.h. dateiberechtigungen etc. sind richtig gesetzt. was kann es dann noch sein ? /etc/sshd_config Port 22 Protocol 2 #ListenAddress 0.0.0.0 #ListenAddress :: HostKey /etc/ssh/ssh_host_key HostKey /etc/ssh/ssh_host_rsa_key HostKey /etc/ssh/ssh_host_dsa_key ServerKeyBits 1024 LoginGraceTime 600 KeyRegenerationInterval 3600 PermitRootLogin yes # # Don't read ~/.rhosts and ~/.shosts files IgnoreRhosts yes # Uncomment if you don't trust ~/.ssh/known_hosts for RhostsRSAAuthentication IgnoreUserKnownHosts no StrictModes yes X11Forwarding yes X11DisplayOffset 10 PrintMotd yes #PrintLastLog no KeepAlive yes # Logging SyslogFacility AUTH LogLevel DEBUG #obsoletes QuietMode and FascistLogging RhostsAuthentication yes # # For this to work you will also need host keys in /etc/ssh/ssh_known_hosts RhostsRSAAuthentication yes # similar for protocol version 2 HostbasedAuthentication no # RSAAuthentication yes # To disable tunneled clear text passwords, change to no here! PasswordAuthentication yes PermitEmptyPasswords yes # Uncomment to disable s/key passwords ChallengeResponseAuthentication yes # Uncomment to enable PAM keyboard-interactive authentication # Warning: enabling this may bypass the setting of 'PasswordAuthentication' #PAMAuthenticationViaKbdInt yes output des debug aus /var/log/messages Sep 3 10:22:39 natty2 sshd[15365]: Connection from ::ffff:198.201.201.50 port 1119 Sep 3 10:22:39 natty2 sshd[15364]: debug1: Forked child 15365. Sep 3 10:22:39 natty2 sshd[15365]: debug1: Client protocol version 2.0; client software version PuTTY-Release-0.52 Sep 3 10:22:39 natty2 sshd[15365]: debug1: no match: PuTTY-Release-0.52 Sep 3 10:22:39 natty2 sshd[15365]: Enabling compatibility mode for protocol 2.0 Sep 3 10:22:39 natty2 sshd[15365]: debug1: Local version string SSH-2.0-OpenSSH_2.9p1 Sep 3 10:22:39 natty2 sshd[15365]: debug1: Rhosts Authentication disabled, originating port not trusted. Sep 3 10:22:39 natty2 sshd[15365]: debug1: list_hostkey_types: ssh-rsa,ssh-dss Sep 3 10:22:39 natty2 sshd[15365]: debug1: SSH2_MSG_KEXINIT sent Sep 3 10:22:39 natty2 sshd[15365]: debug1: SSH2_MSG_KEXINIT received Sep 3 10:22:39 natty2 sshd[15365]: debug1: kex: client->server 3des-cbc hmac-sha1 none Sep 3 10:22:39 natty2 sshd[15365]: debug1: kex: server->client 3des-cbc hmac-sha1 none Sep 3 10:22:39 natty2 sshd[15365]: debug1: SSH2_MSG_KEX_DH_GEX_REQUEST_OLD received Sep 3 10:22:39 natty2 sshd[15365]: debug1: SSH2_MSG_KEX_DH_GEX_GROUP sent Sep 3 10:22:39 natty2 sshd[15365]: debug1: dh_gen_key: priv key bits set: 185/384 Sep 3 10:22:39 natty2 sshd[15365]: debug1: bits set: 1061/2049 Sep 3 10:22:39 natty2 sshd[15365]: debug1: expecting SSH2_MSG_KEX_DH_GEX_INIT Sep 3 10:22:41 natty2 sshd[15365]: debug1: bits set: 1020/2049 Sep 3 10:22:41 natty2 sshd[15365]: debug1: SSH2_MSG_KEX_DH_GEX_REPLY sent Sep 3 10:22:41 natty2 sshd[15365]: debug1: kex_derive_keys Sep 3 10:22:41 natty2 sshd[15365]: debug1: newkeys: mode 1 Sep 3 10:22:41 natty2 sshd[15365]: debug1: SSH2_MSG_NEWKEYS sent Sep 3 10:22:41 natty2 sshd[15365]: debug1: waiting for SSH2_MSG_NEWKEYS Sep 3 10:22:43 natty2 sshd[15365]: debug1: newkeys: mode 0 Sep 3 10:22:43 natty2 sshd[15365]: debug1: SSH2_MSG_NEWKEYS received Sep 3 10:22:43 natty2 sshd[15365]: debug1: KEX done Sep 3 10:22:45 natty2 sshd[15365]: debug1: userauth-request for user root service ssh-connection method none Sep 3 10:22:45 natty2 sshd[15365]: debug1: attempt 0 failures 0 Sep 3 10:22:45 natty2 sshd[15365]: debug1: Starting up PAM with username "root" Sep 3 10:22:45 natty2 sshd[15365]: debug1: PAM setting rhost to "root" Sep 3 10:22:45 natty2 sshd[15365]: debug1: PAM Password authentication for "root" failed[7]: Authentication failure Sep 3 10:22:45 natty2 sshd[15365]: Failed none for ROOT from ::ffff:198.201.201.50 port 1119 ssh2 Sep 3 10:22:46 natty2 sshd[15365]: debug1: userauth-request for user root service ssh-connection method publickey Sep 3 10:22:46 natty2 sshd[15365]: debug1: attempt 1 failures 1 Sep 3 10:22:46 natty2 sshd[15365]: debug1: test whether pkalg/pkblob are acceptable Sep 3 10:22:46 natty2 sshd[15365]: debug1: temporarily_use_uid: 0/0 (e=0) Sep 3 10:22:46 natty2 sshd[15365]: debug1: restore_uid Sep 3 10:22:46 natty2 sshd[15365]: Failed publickey for ROOT from ::ffff:198.201.201.50 port 1119 ssh2 Sep 3 10:22:48 natty2 sshd[15365]: fatal: Read from socket failed: Connection reset by peer -- SET THE CONTROLS FOR THE HEART OF THE SUN