Prima di tutto, generiamo una chiave RSA:
$ ssh-keygen -t rsadi seguito rispondiamo con un semplice invio alle domande che ci verranno poste:
Enter file in which to save the key (/home/utente/.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:Conseguentemente forniamo al server l'RSA ottenuto:
$ cat ~/.ssh/id_rsa.pub | ssh user@host 'cat >> .ssh/authorized_keys'Se tutto è andato a buon fine, si dovrebbe poter accedere senza password al computer remoto semplicemente con:
$ ssh user@host
Nessun commento:
Posta un commento