Mailinglist Archive: opensuse (4053 mails)

< Previous Next >
Re: [SLE] SSH & Public Keys
  • From: Brian Youngstrom <briany@xxxxxxxxxxxxx>
  • Date: Tue, 28 Aug 2001 10:51:38 -0700 (PDT)
  • Message-id: <Pine.LNX.4.33.0108281046520.11929-100000@xxxxxxxxxxxxxx>
> I use ssh and scp a lot, so I would like to avoid typing in my password
> every time I want to copy a file, or type a command on my remote server. I
> know that I should copy my, and put it in ~/.ssh over on the
> remote server, but what else do I need to do? It seems that isn't enough, as
> I still have to type my password to login.

There are a couple more steps you have to take.

Put the contents of the file into ~/.ssh/authorized_hosts on
the machine you wish to log into.
If you have a pass-phrase on the private key, you will probably want to
run ssh-agent during login. This way you will only have to type the
passphrase once for your login session.

You may also want to consider moving to ssh2 rather than ssh1 due to some
problems with the protocol. Use ssh-keygen -t to generate ssh2 keys.
Then copy then contents of .ssh/ or .ssh/ to
~/.ssh/authorized_hosts2 on the remote machine.

Email me directly if you have any more questions

Brian Youngstrom

< Previous Next >