Mailinglist Archive: opensuse (1480 mails)

< Previous Next >
[opensuse] ssh key generation
  • From: "LLLActive@xxxxxxx" <LLLActive@xxxxxxx>
  • Date: Thu, 08 Mar 2012 04:39:00 +0100
  • Message-id: <4F5829D4.4070003@GMX.Net>
Hi all,

I've done the following procedure to get a passwordless login on a remote server:

as root:

$ ssh-keygen
Enter file in which to save the key (/home/your_user/.ssh/id_rsa): <Enter>
Enter passphrase (empty for no passphrase): <Enter>
Enter same passphrase again: <Enter>
Your identification has been saved in /root/.ssh/id_rsa.
Your public key has been saved in /root/.ssh/id_rsa.pub.
The key fingerprint is: (-:)
co:ec:aa:a1:de:34:5c:95:24:1d:25:4a:84:aq:65:ca root@server
The key's randomart image is:
+--[ RSA 2048]----+
| .******* |
| ..B-.-. |
| kjak |
| . ..+<-, |
| . #+#^ยด |
| . |
| |
| |
| |
+-----------------+


Then I upload the key

as root:
$ ssh-copy-id user@xxxxxxxxxxxx
Password:

message:
Now try logging into the machine, with "ssh 'user@xxxxxxxxxxxxxxxxxx'", and check in:
~/.ssh/authorized_keys
to make sure we haven't added extra keys that you weren't expecting.

Now, when I login, the password is asked *again*.

Where does the id_rsa get used? It is in /root/.ssh/ together with id_rsa.pub when generated by ssh-keygen. I am root when performing the login on the remote server at the moment. Later, I will use a dedicated user.

Any suggestions welcome.

:-)
Dreiel


--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse+owner@xxxxxxxxxxxx

< Previous Next >