[oracle@denilson ~]$ ssh-keygen -b 1024 -t rsa
Generating public/private rsa key pair.
Enter file in which to save the key (/home/oracle/.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/oracle/.ssh/id_rsa.
Your public key has been saved in /home/oracle/.ssh/id_rsa.pub.
The key fingerprint is:
57:43:2c:ec:3a:ef:b3:07:f5:3e:d9:73:f0:a4:6c:dd oracle@denilson
[oracle@denilson ~]$ cd ~oracle/.ssh
[oracle@denilson ~]$ scp id_rsa.pub oracle@192.168.1.2:/home/oracle/.ssh/
[oracle@denilson ~]$ ssh oracle@192.168.1.2 (ainda vai pedir password)
[oracle@denilson_stdby ~]$ cd ~oracle/.ssh
[oracle@denilson_stdby ~]$ mv id_rsa.pub authorized_keys
[oracle@denilson_stdby ~]$ exit
[oracle@denilson ~]$ ssh oracle@192.168.1.2 (não pedira mais password)
[oracle@denilson_stdby ~]$
Generating public/private rsa key pair.
Enter file in which to save the key (/home/oracle/.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/oracle/.ssh/id_rsa.
Your public key has been saved in /home/oracle/.ssh/id_rsa.pub.
The key fingerprint is:
57:43:2c:ec:3a:ef:b3:07:f5:3e:d9:73:f0:a4:6c:dd oracle@denilson
[oracle@denilson ~]$ cd ~oracle/.ssh
[oracle@denilson ~]$ scp id_rsa.pub oracle@192.168.1.2:/home/oracle/.ssh/
[oracle@denilson ~]$ ssh oracle@192.168.1.2 (ainda vai pedir password)
[oracle@denilson_stdby ~]$ cd ~oracle/.ssh
[oracle@denilson_stdby ~]$ mv id_rsa.pub authorized_keys
[oracle@denilson_stdby ~]$ exit
[oracle@denilson ~]$ ssh oracle@192.168.1.2 (não pedira mais password)
[oracle@denilson_stdby ~]$
Comentários
Postar um comentário