Fedora 35
Sponsored Link

OpenSSH : Use SSH-Agent2021/11/04

 
Use SSH-Agent to automate inputting Passphrase of SSH Key-Pair authentication.
[1] This is some example to use SSH-Agent.
# run SSH-Agent

[fedora@node01 ~]$
eval $(ssh-agent)

Agent pid 1389
# add passphrase

[fedora@node01 ~]$
ssh-add

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

[fedora@node01 ~]$
ssh-add -l

256 SHA256:eZV3AxI39NqZglzADa/51KFMR3wyvbMlBhkQrZTymNI fedora@dlp.srv.world (ECDSA)
# verify to conenct without inputting passphrase

[fedora@node01 ~]$
ssh dlp.srv.world hostname

dlp.srv.world
# stop SSH-Agent

# if not execute it, SSH-Agent process remains even if you logout System, be careful

[fedora@node01 ~]$
eval $(ssh-agent -k)

Agent pid 1389 killed
Matched Content