Re: Pass SSH password automatically

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, Mar 28, 2004 at 11:46:40AM +0100, Steve Searle wrote:
> Many moons ago I set up my (then RH) Linux box to pass the current
> password automatically when SSHing to another box.  If I was logged on
> as steve, and I did "ssh myserver" it would take me straight to a shell
> on myserver, logged on as steve, assuming the steve account on myserver
> had the same password as the box I was coming from.  I was not asked for
> the password.
> 
> Does anyone know what I need to change to change my current setup to
> work like this.

1/ Use ssh-keygen to generate an ssh key.
2/ Copy the public part of the new key to the remote box
   (it goes in ~/.ssh/authorized_keys)

At this stage you'll be prompted for the key's passphrase rather than
the user's password when connecting to the remote box. To get rid of
that, you'll need to be running ssh-agent.

3/ Run "ssh-agent $SHELL" from the command line
4/ Run "ssh-add" from the command line - this will prompt you for
   the key's passphrase

Now you shouldn't be prompted for the passphrase when you try to connect
to any box that has your key installed.

See the docs at <http://openssh.org/manual.html> for more details.

Dave...

-- 
  New .sigs
  Running in please parse



[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux