Ubuntu 20.04
Sponsored Link

OpenSSH : Use SSH-Agent2020/04/27

 
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 some example to use SSH-Agent.
# start SSH-Agent

ubuntu@node01:~$
eval $(ssh-agent)

Agent pid 1592
# 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:8c0JKIhM5yPk6Kd2YloCsiKOKKjqPu5Qcot94/buwEg ubuntu@dlp.srv.world (RSA)
# try to conenct 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 1592 killed
Matched Content