Ubuntu 18.04
Sponsored Link

OpenSSH : Use SSH-Agent2018/04/28

 
Use SSH-Agent to automate inputting passphrase on key-pair authentication.
[1]
[2] How to use SSH-Agent.
# start SSH-Agent

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

Agent pid 983
# add Identity

ubuntu@dlp:~$
ssh-add

Enter passphrase for /home/ubuntu/.ssh/id_rsa:
Identity added: /home/ubuntu/.ssh/id_rsa (/home/ubuntu/.ssh/id_rsa)
# confirm

ubuntu@dlp:~$
ssh-add -l

2048 xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:4c:b2 /home/ubuntu/.ssh/id_rsa (RSA)
# try to conenct with SSH without passphrase

ubuntu@dlp:~$
ssh www.srv.world hostname

www.srv.world
# exit from SSH-Agent

ubuntu@dlp:~$
eval $(ssh-agent -k)

Agent pid 983 killed
Matched Content