Mit SSH Keys am Server anmelden

Erstellt am 11. August 2006
  in
 
676
vote

Für den User Root:
Am Client:


# ssh-keygen -t rsa -b 1024 (Kein Passwort & Standard Speicherort)
# cd .ssh
# scp id_rsa.pub root@10.0.0.101:/root/.ssh/id_rsa.client

Am Server:

# cat ~/.ssh/id_rsa.client >> /root/.ssh/authorized_keys

Woran kann es liegen, wenn es nicht funktioniert?
instellungen in der “/etc/sshd/sshd_config” Datei überprüfen:

RSAAuthentication yes
PubkeyAuthentication yes
Authorizedkeysfile .ssh/authorized_keys