SSH senza rischiesta di password tra server linux

sull’ host da cui collegarsi :

ssh-keygen -t rsa

A video compariranno le seguenti scritte con anche la richiesta della password

Generating public/private rsa key pair.
Enter file in which to save the key (/root/.ssh/id_rsa):

Created directory ‘/root/.ssh’.
Enter passphrase (empty for no passphrase):
Enter same passphrase again:

Your identification has been saved in /root/.ssh/id_rsa.
Your public key has been saved in /root/.ssh/id_rsa.pub.
The key fingerprint is:
ca:45:54:2c:d0:92:3e:4e:b3:0a:b8:e7:dc:7d:6a:ec root@gelsivm1

copio la chiave pubblica sull’host di destinazione

cat /root/.ssh/id_rsa.pub | ssh root@xxx.xxx.xxx.xxx “cat – >> .ssh/authorized_keys”

e il gioco e’ fatto !

SSH senza rischiesta di password tra server linux

Leave a Reply

Your email address will not be published. Required fields are marked *