OpenSSH : Use SSH-Agent2026/04/24 |
|
Use SSH-Agent to automate inputting passphrase on key-pair authentication. |
|
| [1] | |
| [2] | This is how to use SSH-Agent. |
|
# start SSH-Agent ubuntu@node01:~$ eval $(ssh-agent) Agent pid 1609 # add Identity ubuntu@node01:~$ ssh-add Enter passphrase for /home/ubuntu/.ssh/id_ed25519: Identity added: /home/ubuntu/.ssh/id_ed25519 (ubuntu@node01.srv.world) # confirm ubuntu@node01:~$ ssh-add -l 256 SHA256:mU2GVu3ZgC6Xcab6XQ2KIazz9JOeDzQBOTdyxwHet7E ubuntu@node01.srv.world (ED25519) # 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 1609 killed |
| Sponsored Link |
|
|