[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: SSH keys
Robert Threet said:
> I am trying to automate SSH so I won't have to use the
> password to log in. When I type ssh-agent followed by
> ssh-add it complains "Failed to connect to
> authentication agent - agent not running?" even though
> the agent *IS* running. It's something silly - I know.
You have to specify the command to run under ssh-agent as an argument
to ssh-agent.
I usually use one of the following. Either this bash alias:
alias ssh-auth="exec ssh-agent sh -c 'ssh-add && exec bash -login'"
or something like this in ~/.Xclients (or .xinitrc, or whatever):
exec ssh-agent sh -c 'ssh-add < /dev/null && exec wmaker'
Does that help?
Steve
--
steve@silug.org | Southern Illinois Linux Users Group
(618)398-7320 | See web site for meeting details.
Steven Pritchard | http://www.silug.org/
-
To unsubscribe, send email to majordomo@luci.org with
"unsubscribe luci-discuss" in the body.
- References:
- SSH keys
- From: Robert Threet <rthreet@yahoo.com>