Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

RE: ssh-agent and ssh-add automatically

From: Ray Thompson <rthompson(at)interpublic.com>
Date: Tue Dec 17 2002 - 13:25:17 EST


Try this.

The first time you run ssh-agent redirect the output to a file. $ssh-agent > /tmp/agentid

Add the following to your .bash_profile or whatever is appropriate. . /tmp/agentid
(create a new session or reload your profile: ". ~/.bash_profile")

Once ssh-add is run all subsequent sessions should be ready to go.

--Ray

-----Original Message-----
From: David Danovich [mailto:David.Danovich@huji.ac.il] Sent: Tuesday, December 17, 2002 2:49 AM To: secureshell@securityfocus.com
Subject: ssh-agent and ssh-add automatically

Hi,

I have a linux cluster (RedHat 7.3) with 4 linux boxes. In order for ssh to operate without password I seted up private authentication keys using ssh-keygen -t rsa command. Created authorized_keys and known_hosts files and everything works fine. The problem is that every time I open a new window or start a new session I have to carry out several commands in order to use this ssh without password. The commands I need to do is following

Do you need help?X

 ssh-agent $SHELL
ssh-add

I also need to write my passphrase and only after this procedure I am able do carry out any command on any nodes directly from server without typing password or passphrase. (For example, command like ssh -n har3 date). Har3 is the name of one of the node.

What I want is to skip this procedure with ssh-agent and ssh-add commands. Is it possible to modify some configuration files of ssh so that I would be able to carry out command on nodes when I write it actually on server (like above command ssh -n har3 date) directly when I start a new session without ssh-agent and ssh-add commands.

Thank you in advance David Received on Wed Dec 18 12:07:49 2002

This archive was generated by hypermail 2.1.8 : Wed Aug 23 2006 - 14:02:52 EDT


Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library