Ubuntu 23.04
Sponsored Link

OpenSSH : Use SSH-Agent2023/04/21

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

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

Agent pid 749
# 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:gdWAZMe2nhZ5XyefH4piA32XVLBVvxJBdE7WpOIqfFE 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 749 killed
Matched Content