You are not logged in.
Pages: 1
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
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
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 Found it online someplace a long time ago!
Good luck!
Scott
Offline
Your post is great firecat, although I have absolutly no idea how it works.
Should learn bash if I can spare a few days...
Offline
Pages: 1