пятница, 15 сентября 2017 г.

3 Steps to Perform SSH Login Without Password

3 Steps to Perform SSH Login Without Password

[root@CentOS ~]# ssh-keygen
Generating public/private rsa key pair.
Enter file in which to save the key (/root/.ssh/id_rsa):
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:
78:3c:b3:40:39:24:d3:5e:73:a4:83:c6:72:b9:74:72 root@CentOS
The key's randomart image is:
+--[ RSA 2048]----+
|    o..  ..      |
|     =.+o..      |
|    ..%.Eo       |
|     *.O .       |
|      + S        |
|       o +       |
|        .        |
|                 |
|                 |
+-----------------+


[root@CentOS ~]# ssh-copy-id -i ~/.ssh/id_rsa.pub 192.168.1.17
/usr/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are already installed
/usr/bin/ssh-copy-id: INFO: 1 key(s) remain to be installed -- if you are prompted now it is to install the new keys
root@192.168.1.17's password:

Number of key(s) added: 1

Now try logging into the machine, with:   "ssh '192.168.1.17'"
and check to make sure that only the key(s) you wanted were added.

[root@CentOS ~]# ssh 192.168.1.17
Last login: Thu May 25 03:26:16 2017 from 192.168.1.12
[root@nodeAns ~]#

On node public keys locate in file /root/.ssh/authorized_keys
# ssh-copy-id -i ~/.ssh/id_rsa.pub 192.168.1.17
On server (for local connection to 127.0.0.1) /root/.ssh/authorized_keys 
# ssh-copy-id -i ~/.ssh/id_rsa.pub 127.0.0.1
Rember!! Files have permission  700

1 комментарий:

  1. Записки: 3 Steps To Perform Ssh Login Without Password >>>>> Download Now

    >>>>> Download Full

    Записки: 3 Steps To Perform Ssh Login Without Password >>>>> Download LINK

    >>>>> Download Now

    Записки: 3 Steps To Perform Ssh Login Without Password >>>>> Download Full

    >>>>> Download LINK

    ОтветитьУдалить