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

Re: SSH Privat key and login as root without a passwort

> iam looking for generate a privat SSH-Key. There is a toolthe generates
> Privat RSA keys. Now i have a privat key generated but where must i put
> it in the Linux that linux know who ami and i didnt need a passwort for
> login.

You put the **private** key on the system you are connecting FROM, (in
your case this looks like Putty) and you put the **public** key on the
system you are connectiong TO. (in your case this looks like in

The docs for putty, ssh, ssh-keygen should be helpful:


	man ssh-keygen
	man sshd # see end for authorized_keys file info

It is worth noting that putty can import/export
openssh keys.

Also you should check that the system administrator has not disallowed use
of public/private keys for ssh authentication. (see /etc/ssh/sshd_config
on the system you are connecting TO)


On Sun, 18 Jan 2004, Fraser Campbell wrote:

> On January 18, 2004 10:45 am, ournewsletter wrote:
> > put it in /root/.ssh/authorized_keys. I don't know if it works with the key
> > produced by Putty, but with a "ssh-keygen"-generated public key it does. If
> > you need more public keys to log in, simply name the key
> > files /root/.ssh/authorized_keys2, /root/.ssh/authorized_keys3 ...
> Putty keys do works with openssh but you must edit them first.  Putty keys
> look rather like the ascii export of a gpg key, you must edit them so that
> they look like this:
> ssh-rsa 89yh23wrnhjfdg... #all one line

Reply to: