krot

ssh-agent

Nov 29th, 2021 (edited)
437
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.22 KB | None | 0 0
  1. ##SSH
  2. if [ ! -S ~/.ssh/ssh_auth_sock ]; then
  3.   eval `ssh-agent`
  4.   ln -sf "$SSH_AUTH_SOCK" ~/.ssh/ssh_auth_sock
  5. fi
  6. export SSH_AUTH_SOCK=~/.ssh/ssh_auth_sock
  7. ssh-add -l > /dev/null || ssh-add
  8.  
  9. //client
  10. ssh-add ~/my/id_rsa
Add Comment
Please, Sign In to add comment