starting ssh-agent on ssh login

2016-10-07 Thread Predrag Punosevac
Hi Misc, This is a rather trivial question. What is the recommended way of starting ssh-agent when upon ssh login into the remote host. Namely I have a remote host which is used as a gateway to a bunch of machines whose ssh keys are password protected. I have AddKeysToAgent yes in my ~/.ssh/con

Re: starting ssh-agent on ssh login

2016-10-08 Thread soko.tica
Hi Predrag, I am not sure that I am getting your question right, but for starting ssh agent on my lap, I simply uncomment (or create?) the following in my .xinitrc ... if [ "$SSH_AGENT_PID" ]; then ssh-add -D < /dev/null eval `ssh-agent -s -k` fi ... For starting (and keeping alive) a ssh agent

Re: starting ssh-agent on ssh login

2016-10-08 Thread Predrag Punosevac
"soko.tica" wrote: > Hi Predrag, > > I am not sure that I am getting your question right, but for starting ssh > agent on my lap, I simply uncomment (or create?) the following in my > .xinitrc You are not. I am not running X so I am not using .xinitrc. I am ssh-ing to the headless server and I

Re: starting ssh-agent on ssh login

2016-10-08 Thread Remi Locherer
On Sat, Oct 08, 2016 at 09:41:41AM -0400, Predrag Punosevac wrote: > "soko.tica" wrote: > > > Hi Predrag, > > > > I am not sure that I am getting your question right, but for starting ssh > > agent on my lap, I simply uncomment (or create?) the following in my > > .xinitrc > > You are not. I am

Re: starting ssh-agent on ssh login

2016-10-08 Thread Predrag Punosevac
I just want to give an update to this thread. I got lots of replays off the list as well but not the answer I was looking for For now Iexperimented with the single eval `ssh-agent -t 60` in my .profile file and AddKeysToAgent yes in my ~/.ssh/config file. Everything works as I wont bu

Re: starting ssh-agent on ssh login

2016-10-08 Thread Remi Locherer
On Sat, Oct 08, 2016 at 04:44:16PM -0400, Predrag Punosevac wrote: > I just want to give an update to this thread. I got lots of replays off > the list as well but not the answer I was looking for > > For now Iexperimented with the single > > eval `ssh-agent -t 60` > > in my .profile file w

Re: starting ssh-agent on ssh login

2016-10-08 Thread Patrick Dohman
pageant & PuTTY can accomplish this. see below for more info: http://unixwiz.net/techtips/putty-openssh.html Regards Patrick > On Oct 8, 2016, at 3:44 PM, Predrag Punosevac mailto:punoseva...@gmail.com>> wrote: > > ssh-agent