OpenSSH : Use SSH-Agent2021/08/17 |
Use SSH-Agent to automate inputting passphrase on key-pair authentication.
Using SSH-Agent is valid for users who set SSH Key Pair with Passphrase. |
|
[1] | |
[2] | This is an example to use SSH-Agent. |
# start SSH-Agent debian@node01:~$ eval $(ssh-agent) Agent pid 924 # add Identity debian@node01:~$ ssh-add Enter passphrase for /home/debian/.ssh/id_rsa: Identity added: /home/debian/.ssh/id_rsa (debian@dlp.srv.world) # confirmation debian@node01:~$ ssh-add -l 3072 SHA256:H+lFm+3c93VekrLiFCYAwoWDUVs43s4JEze8wr8QzG8 debian@dlp.srv.world (RSA) # try to connect with SSH without passphrase debian@node01:~$ ssh dlp.srv.world hostname dlp.srv.world # stop SSH-Agent # if not execute it, SSH-Agent process remains even if you logout System, be careful debian@node01:~$ eval $(ssh-agent -k) Agent pid 924 killed |
Sponsored Link |