Debian 9 Stretch
Sponsored Link

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

debian@dlp:~$
eval `ssh-agent`

Agent pid 1204
# add identity

debian@dlp:~$
ssh-add

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

debian@dlp:~$
ssh-add -l

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

debian@dlp:~$
ssh node01.srv.world hostname

node01.srv.world
# exit from SSH-Agent

debian@dlp:~$
eval `ssh-agent -k`

Agent pid 1204 killed
Matched Content
 
Tweet