Re: [MLIST] ssh-agent and ssh-add automatically

From: David Walker (ssh@grax.com)
Date: 12/17/02

  • Next message: Jimmy Vo: "ssh_config and sshd_config files"
    From: David Walker <ssh@grax.com>
    To: "David Danovich" <David.Danovich@huji.ac.il>, <secureshell@securityfocus.com>
    Date: Tue, 17 Dec 2002 16:03:48 -0600
    
    

    You have the option of creating your key without a passphrase or using the
    Keychain script from Gentoo at http://www.gentoo.org/proj/en/keychain.xml to
    manage ssh-agent.

    Keychain allows you to enter your passphrase once and new shells you open will
    find and use the existing ssh-agent

    On Tuesday 17 December 2002 02:49 am, David Danovich wrote:
    > 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: ssh without entering password/passphrase
      ... I created private and public key pairs in my local host ... > this point when I try to ssh, it asks for my passphrase and I can log ... "Could not open connection to your authentication agent". ... What you are missing is that just having ssh-agent run is not enough. ...
      (comp.os.linux.misc)
    • Re: asking passphrase only on first use
      ... >required and not when ssh-add is started. ... you have to enter the passphrase for all of them ... >the associated keys or not during that session. ... These commands invoked from .bashrc will add an ssh-agent if appropriate ...
      (SSH)
    • Re: Using pam_ssh with gdm
      ... gdm resets and I reenter the password and passphrase. ... >>by hand to actually enter the key information. ... > and errno is set to ECHILD (observed with gdm who uses a whole bunch of processes). ... ssh-agent and child processes. ...
      (freebsd-stable)
    • Re: Can cron jobs share ssh-agent?
      ... > I currently have a daily remote backup operation which involves manually ... To avoid having to type in the passphrase every day I store ... Yeah, you can use ssh-agent. ... or can you use "rsync" correctly ...
      (comp.security.ssh)
    • Re: ssh-agent and ssh-add automatically
      ... The commands I need to do is ... You should run ssh-agent only once when you log in, ... ssh-add < /dev/null ... If you do not run X11, ...
      (SSH)