Hallo, miteinander!
Nachdem ich mich im Moment ein Bisschen festgefahren habe, brauche ich bitte mal Hilfe:
Auf meiner 7170 läuft seit Ewigkeiten dropbear. Jetzt habe ich versucht, auf Authentifikation über authorized keys umzusteigen. Aber dropbear will einfach die keys nicht erkennen.
Folgendes habe ich bisher versucht:
Danach habe ich meine Client-id_rsa.pub in die /var/tmp/.ssh/authorized_keys kopiert.
Gestartet wird dropbear bei mir mit
Kann es sein, dass dropbear SSH1 nutzt? SuSE nutzt auf alle Fälle SSH2. Ist das so?
Update: Kann ich ausschließen. dropbear nutzt SSH2.
Hier das Protokoll:
Vielen Dank schonmal für alle Eure Antworten!
Schönen Gruß!
hssuhle
Nachdem ich mich im Moment ein Bisschen festgefahren habe, brauche ich bitte mal Hilfe:
Auf meiner 7170 läuft seit Ewigkeiten dropbear. Jetzt habe ich versucht, auf Authentifikation über authorized keys umzusteigen. Aber dropbear will einfach die keys nicht erkennen.
Folgendes habe ich bisher versucht:
Code:
# Aendern des Root Home-Dirs
cp -p /var/tmp/passwd /var/tmp/passwd.old
sed -e "/root:/s#:/:#:/var/tmp:#" /var/tmp/passwd.old > /var/tmp/passwd
# Kontrolle:
cat /var/tmp/passwd
root:x:0:0:root:/var/tmp:/bin/sh
ftpuser:any:1000:0:ftp user:/var/media/ftp:/bin/sh
Danach habe ich meine Client-id_rsa.pub in die /var/tmp/.ssh/authorized_keys kopiert.
Gestartet wird dropbear bei mir mit
Code:
/var/tmp/dropbear -s -r /var/tmp/dropbear_rsa_hostkey -d /var/tmp/dropbear_dss_hostkey
Kann es sein, dass dropbear SSH1 nutzt? SuSE nutzt auf alle Fälle SSH2. Ist das so?
Update: Kann ich ausschließen. dropbear nutzt SSH2.
Hier das Protokoll:
Code:
OpenSSH_4.6p1, OpenSSL 0.9.8e 23 Feb 2007
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug1: Connecting to fritz [192.168.150.1] port 22.
debug1: Connection established.
debug1: permanently_set_uid: 0/0
debug1: identity file /root/.ssh/id_rsa type 1
debug1: identity file /root/.ssh/id_dsa type -1
debug1: Remote protocol version 2.0, remote software version dropbear_0.48
debug1: no match: dropbear_0.48
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_4.6
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-cbc hmac-md5 none
debug1: kex: client->server aes128-cbc hmac-md5 none
debug1: sending SSH2_MSG_KEXDH_INIT
debug1: expecting SSH2_MSG_KEXDH_REPLY
debug1: Host 'fritz' is known and matches the RSA host key.
debug1: Found key in /root/.ssh/known_hosts:1
debug1: ssh_rsa_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey
debug1: Next authentication method: publickey
debug1: Offering public key: /root/.ssh/id_rsa
debug1: Authentications that can continue: publickey
debug1: Trying private key: /root/.ssh/id_dsa
debug1: No more authentication methods to try.
Permission denied (publickey).
Vielen Dank schonmal für alle Eure Antworten!
Schönen Gruß!
hssuhle
Zuletzt bearbeitet: