There a two different methods in order to configure a passwordless SSH logon on a remote HOME:
ssh-keygen -b 4096 -t rsa -f [keyfile_name], type ENTER (empty passphrase) [public_keyfile].pub (be careful to choose the file ending in .pub and not the private keyfile!!!) to the content of ~/.ssh/authorized_keys
SSH_AGENT and SSH_AUTH_SOCK are defined; if not invoke a new ssh agent via eval $(ssh-agent)ssh-keygen -b 4096 -t rsa -f [private_keyfile], type a passphrase and hit ENTER ssh-agent: ssh-add [private_keyfile][public_keyfile].pub (be careful to choose the file ending in .pub and not the private keyfile!!!) to the content of ~/.ssh/authorized_keysssh-agent -x; then type your password) and unlocked (ssh-agent -X; then type your password)Attention: The ssh-agent is not a permanent keystore! You have to add the private key manually for every new user session to the agent (e.g. on behalf of a script).
date of revision: 03-07-2019 © kraus