You are not logged in.

#1 2009-09-16 01:32:17

jithin1987
Member
From: Bangalore
Registered: 2009-09-12
Posts: 182

[solved]ssh-agent not working

ssh-agent
SSH_AUTH_SOCK=/tmp/ssh-TwKWWk9859/agent.9859; export SSH_AUTH_SOCK;
SSH_AGENT_PID=9860; export SSH_AGENT_PID;
echo Agent pid 9860;
jithine ~  $ ssh-add
Could not open a connection to your authentication agent.

How could I make agent auto start during my every kde  4.3.1 login? Also I want to use it with ksshaskpass. Running ssh-add in krunner used to popup ksshaskpass dialog in kubunutu. How can I make it work. Please help.

Last edited by jithin1987 (2009-09-17 00:43:18)


Thanks
Jithin

Offline

#2 2009-09-16 03:26:01

Vladman
Member
Registered: 2009-01-28
Posts: 118

Re: [solved]ssh-agent not working

I think you need to install keychain http://wiki.archlinux.org/index.php/Usi … g_keychain

Offline

#3 2009-09-16 16:22:49

jithin1987
Member
From: Bangalore
Registered: 2009-09-12
Posts: 182

Re: [solved]ssh-agent not working

I think the ssh agent is not started at all. I thought it will start automatically on kde login.


Thanks
Jithin

Offline

#4 2009-09-16 16:40:56

Vladman
Member
Registered: 2009-01-28
Posts: 118

Re: [solved]ssh-agent not working

you have to add it to /etc/rc.conf

DAEMONS=(... sshd ...)

Last edited by Vladman (2009-09-16 16:41:14)

Offline

#5 2009-09-16 16:54:22

jithin1987
Member
From: Bangalore
Registered: 2009-09-12
Posts: 182

Re: [solved]ssh-agent not working

I thought sshd was for enabling ssh server.
/etc/kde/env/agent-startup.sh  has code for starting ssh-agent. But it I am not sure its running.
I am using kdemod.


Thanks
Jithin

Offline

#6 2009-09-16 17:03:42

Vladman
Member
Registered: 2009-01-28
Posts: 118

Re: [solved]ssh-agent not working

Well, this is how I use it and it works for me on a server, no desktop apps...

Offline

#7 2009-09-16 21:40:16

Diaz
Member
From: Portugal
Registered: 2008-04-16
Posts: 366

Re: [solved]ssh-agent not working

I have kde4 from the repos, ssh-agent is launched by kde, i installed keychain and kaskpass, and it works.
I think that initially i had the same problem as you but don't really remember what i changed or if it was just me doing something wrong...

Offline

#8 2009-09-17 00:42:44

jithin1987
Member
From: Bangalore
Registered: 2009-09-12
Posts: 182

Re: [solved]ssh-agent not working

Diaz wrote:

I have kde4 from the repos, ssh-agent is launched by kde, i installed keychain and kaskpass, and it works.
I think that initially i had the same problem as you but don't really remember what i changed or if it was just me doing something wrong...

For some reason kdemod kde is not reading /etc/kde/env folder. I copied the agent-startup.sh from there to ~/.kdemod4/env and now the ssh-agent starts on login


Thanks
Jithin

Offline

Board footer

Powered by FluxBB