Debian 10 Buster
Sponsored Link

OpenSSH : Use SSH-Agent2019/07/10

 
Use SSH-Agent to automate inputting passphrase on key-pair authentication.
[1]
SSH-Agent automates to input passphrase on SSH Key-pair authentication, so this is based on the environment you set SSH Key-pair with passphrase.
[2] How to use SSH-Agent.
# start SSH-Agent

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

Agent pid 427
# add identity

debian@dlp:~$
ssh-add

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

debian@dlp:~$
ssh-add -l

2048 SHA256:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx debian@dlp.srv.world (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 427 killed
Matched Content