[PLUG] Using ssh-agent and ssh-add

Rich Shepard rshepard at appl-ecosys.com
Thu Mar 30 22:04:51 UTC 2017


On Thu, 30 Mar 2017, Robert Citek wrote:

> This is a simplified version of what I have in my ~/.profile :
>
> [ -z "$SSH_AGENT_PID" ] && tty -s && exec ssh-agent bash --login
> [ -n "$SSH_AGENT_PID" ] && tty -s && {
>  echo -e "\nAdding keys to ssh-agent ..."
>  ssh-add ~/.ssh/*_rsa
>  echo
>  ssh-add -l
> }

Robert,

   Now that's very interesting.

> Try this on a test user account before integrating it into your real
> account.

   Setting up a test user needs to wait until I have some time to devote to
this.

> Good luck and let us know how it works for you.

   Will do.

Thanks,

Rich



More information about the PLUG mailing list