ssh-agent and ssh-add automatically

From: David Danovich (David.Danovich@huji.ac.il)
Date: 12/17/02

  • Next message: Aaron Roberts: "non-root login problems"
    From: "David Danovich" <David.Danovich@huji.ac.il>
    To: <secureshell@securityfocus.com>
    Date: Tue, 17 Dec 2002 10:49:19 +0200
    
    

    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

     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



    Relevant Pages

    • Re: Really need help on this one
      ... Is there a way to read the output of a particular command into ... Heres a better example using ssh. ... set timeout $timeout ... exec kill -9 $pid ...
      (comp.lang.tcl)
    • Re: Starting ssh-add
      ... What I'm trying to do, is run ssh between computers on my home lan, without ... before using the ssh command. ... A couple of things I've noticed, is that ssh-add ... Autostart directory, it doesn't seem to work in .profile, even though other ...
      (alt.os.linux.suse)
    • RE: ssh-agent and ssh-add automatically
      ... You can get away with doing this once every time the system boots, ... Subject: ssh-agent and ssh-add automatically ... ssh-keygen -t rsa command. ... Is it possible to modify some configuration files of ssh so that I would be ...
      (SSH)
    • Re: OT: Hard disk mirror with Paragon on USB stick?
      ... at least two pages of intricate command line stuff. ... The password is only used when you want to backup to a remote machine ... via the network, using the ssh protocol. ... (e.g. with linux, ...
      (sci.electronics.design)
    • RE: midnight commander and ssh sftp
      ... midnight commander and ssh sftp ... which is displayed at the bottom of the MC panel. ... "Left file command options right" at the top of the MC ... MC SSH session with the remote host by hitting F10 key. ...
      (freebsd-questions)