OpenSSH : Use SSH-Agent2022/04/25 |
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 how to use SSH-Agent. |
# start SSH-Agent ubuntu@node01:~$ eval $(ssh-agent) Agent pid 1040 # add Identity ubuntu@node01:~$ ssh-add Enter passphrase for /home/ubuntu/.ssh/id_rsa: Identity added: /home/ubuntu/.ssh/id_rsa (ubuntu@dlp.srv.world) # confirm ubuntu@node01:~$ ssh-add -l 3072 SHA256:Sy81HjIIQhqVHeVoxBxfV/JEflv16yS7wl3TXBafBaw ubuntu@dlp.srv.world (RSA) # try to connect with SSH without passphrase ubuntu@node01:~$ ssh dlp.srv.world hostname dlp.srv.world # exit from SSH-Agent ubuntu@node01:~$ eval $(ssh-agent -k) Agent pid 1040 killed |
Sponsored Link |