Ssh host based authentication

De Linux Server Wiki
Révision datée du 28 septembre 2013 à 20:21 par Pfoo (discussion | contributions) (Page créée avec « =Sur le serveur= <pre> ssh-keyscan -t rsa,dsa client.domain.tld >> /etc/ssh/ssh_known_hosts cat /etc/ssh/ssh_known_hosts | cut -d" " -f1 >> /etc/hosts.equiv </pre> Modi... »)
(diff) ← Version précédente | Voir la version actuelle (diff) | Version suivante → (diff)
Aller à la navigation Aller à la recherche

Sur le serveur

ssh-keyscan -t rsa,dsa client.domain.tld >> /etc/ssh/ssh_known_hosts
cat /etc/ssh/ssh_known_hosts | cut -d" " -f1 >> /etc/hosts.equiv 

Modifiez /etc/ssh/sshd_config

HostbasedAuthentication yes

Si vous souhaitez permettre le login root

cp /etc/hosts.equiv .shosts

Modifiez /etc/ssh/sshd_config :

IgnoreRhosts no