You are not logged in.

#1 2009-08-18 14:11:27

tealson
Member
Registered: 2007-06-14
Posts: 54

ssh-agent

Hello Forum,

i am setting up my keyfiles at the moment and I would like to enter the passphrase only once and then use it during the whole Xorg session (i"m running openbox-session). Now I was wondering why x11-ssh-askpass is not working as it should be. I have to enter my pass when I startx but ssh-agent -l tells me "the agent has no identities".
I have to add the phrase for every xterm again and again, which is not wat i was looking for. Is there a sollution?

Regards,
tealson

Offline

#2 2009-08-18 15:37:22

cactus
Taco Eater
From: t͈̫̹ͨa͖͕͎̱͈ͨ͆ć̥̖̝o̫̫̼s͈̭̱̞͍̃!̰
Registered: 2004-05-25
Posts: 4,622
Website

Re: ssh-agent

how (and where) are you starting ssh-agent?


"Be conservative in what you send; be liberal in what you accept." -- Postel's Law
"tacos" -- Cactus' Law
"t̥͍͎̪̪͗a̴̻̩͈͚ͨc̠o̩̙͈ͫͅs͙͎̙͊ ͔͇̫̜t͎̳̀a̜̞̗ͩc̗͍͚o̲̯̿s̖̣̤̙͌ ̖̜̈ț̰̫͓ạ̪͖̳c̲͎͕̰̯̃̈o͉ͅs̪ͪ ̜̻̖̜͕" -- -̖͚̫̙̓-̺̠͇ͤ̃ ̜̪̜ͯZ͔̗̭̞ͪA̝͈̙͖̩L͉̠̺͓G̙̞̦͖O̳̗͍

Offline

#3 2009-08-18 15:44:46

firecat53
Member
From: Lake Stevens, WA, USA
Registered: 2007-05-14
Posts: 1,542
Website

Re: ssh-agent

I don't use x11-ssh-askpass (and I don't login from a login manager), but the following in my .bashrc works great --

SSH_ENV="$HOME/.ssh/environment"

function start_agent {
     echo "Initialising new SSH agent..."
     /usr/bin/ssh-agent | sed 's/^echo/#echo/' > "${SSH_ENV}"
     echo succeeded
     chmod 600 "${SSH_ENV}"
     . "${SSH_ENV}" > /dev/null
     /usr/bin/ssh-add;
}

# Source SSH settings, if applicable

if [ -f "${SSH_ENV}" ]; then
     . "${SSH_ENV}" > /dev/null
     ps -ef | grep ${SSH_AGENT_PID} | grep ssh-agent$ > /dev/null || {
         start_agent;
     }
else
     start_agent;
fi

I didn't create this smile Found it online someplace a long time ago!

Good luck!
Scott

Offline

#4 2009-08-18 16:24:58

tealson
Member
Registered: 2007-06-14
Posts: 54

Re: ssh-agent

Your post is great firecat, although I have absolutly no idea how it works. wink
Should learn bash if I can spare a few days...

Offline

Board footer

Powered by FluxBB