Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 06-28-2003, 12:34 AM   #1
Registered: Mar 2003
Location: Iowa, US
Distribution: Mint
Posts: 174

Rep: Reputation: 30
Help with ssh-agent - global environment

Hello all,

I am trying to configure ssh-agent at login and am having some problems. What I would like to do is have it so when I use ssh-add, the user added is valid from any term/bash session. More directly, I would like to have a launcher button on GkrellM execute a program on another box.

The problem I am having is getting the agent global. I tried adding it to my /etc/rc.d/rc.local. This caused bash some problems and gave me a no job something or other and a bash prompt on boot up. I then tried adding it to my .bashrc file. This did some bad things. I ended up in an endless loop when I tried to log in creating hundreds of ssh-agent threads and /bin/bash threads.

What I tried to add is: ssh-agent $SHELL. This may be wrong. Could someone please tell me what I need to do to get the agent global so I don't have to ssh from the same term window each time.


Old 07-07-2003, 12:48 PM   #2
Registered: Mar 2003
Location: Iowa, US
Distribution: Mint
Posts: 174

Original Poster
Rep: Reputation: 30
For anyone searching for something similar, the solution was the little script 'keychain' it works wonderfully and will even prompt for passphrases on user login. Check it out if you need something similar!



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
ssh-agent, ssh-add and ssh-keygen AND CVS raylpc Linux - General 2 11-19-2008 03:50 AM
ssh-agent/ssh-add question mega Slackware 2 01-26-2005 04:09 AM
ssh-agent alaios Linux - Security 5 05-02-2004 12:24 PM
ssh-agent podollb Linux - Networking 15 10-16-2003 01:51 AM
Getting ssh-agent to work.. Sonny Linux - Security 16 01-25-2002 07:57 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:09 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration