Nieuws:

Welkom, Gast. Alsjeblieft inloggen of registreren.
Heb je de activerings-mail niet ontvangen?

Auteur Topic: SSH zonder wachtwoord instellen lukt niet  (gelezen 1010 keer)

Offline 10o

  • Lid
  • Steunpunt: Nee
SSH zonder wachtwoord instellen lukt niet
« Gepost op: 2011/12/28, 13:33:31 »
Op een of andere manier lukt het maar niet om via mijn client zonder wachtwoord op een vers geïnstalleerde 11.10 server te komen. Melding bij aanmelden: Agent admitted failure to sign using the key.

10o@10o-laptop:~$ ssh-keygen

Generating public/private rsa key pair.
Enter file in which to save the key (/home/10o/.ssh/id_rsa):
Created directory '/home/10o/.ssh'.
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/10o/.ssh/id_rsa.
Your public key has been saved in /home/10o/.ssh/id_rsa.pub.
The key fingerprint is:
8d:ad:c2:00:ea:49:b8:dc:67:83:ff:2b:6b:bf:11:b6 10o@10o-laptop
The key's randomart image is:
+--[ RSA 2048]----+
|                 |
|                 |
|  .              |
|.. .     +       |
|o.  .  oS o      |
|+.o .o. o.       |
|.+ o +oE.        |
|    +o...        |
|    .o==o        |
+-----------------+

10o@10o-laptop:~$ ssh-copy-id -i ~/.ssh/id_rsa.pub 192.168.0.2

The authenticity of host '192.168.0.2 (192.168.0.2)' can't be established.
ECDSA key fingerprint is 1e:d7:6f:41:d5:d8:a0:10:7f:70:6b:79:6d:07:07:39.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.0.2' (ECDSA) to the list of known hosts.
10o@192.168.0.2's password:
Now try logging into the machine, with "ssh '192.168.0.2'", and check in:

  ~/.ssh/authorized_keys

to make sure we haven't added extra keys that you weren't expecting.

10o@10o-laptop:~$ ssh 192.168.0.2

Agent admitted failure to sign using the key.
10o@192.168.0.2's password:
Welcome to Ubuntu 11.10 (GNU/Linux 3.0.0-12-server x86_64)

 * Documentation:  https://help.ubuntu.com/11.10/serverguide/C

  System information as of Wed Dec 28 13:28:49 CET 2011

  System load:  0.0               Processes:           91
  Usage of /:   2.2% of 47.54GB   Users logged in:     0
  Memory usage: 0%                IP address for eth0: 192.168.0.2
  Swap usage:   0%

  Graph this data and manage this system at https://landscape.canonical.com/
Last login: Wed Dec 28 13:26:30 2011 from 192.168.0.7
Workstation:  i7-5820K 16GiB - GeForce GTX 960 2GiB - 4K  (Ubuntu 16.04.1)
Server: Asus E35M1-I Deluxe - AMD Fusion APU E-350 (Ubuntu Server 16.04.1)

Offline 10o

  • Lid
  • Steunpunt: Nee
Re: SSH zonder wachtwoord instellen lukt niet
« Reactie #1 Gepost op: 2011/12/28, 13:39:18 »
Na een reboot van de laptop lukt het wel!!!  :-X
Dat stond in geen enkele tutorial...
Workstation:  i7-5820K 16GiB - GeForce GTX 960 2GiB - 4K  (Ubuntu 16.04.1)
Server: Asus E35M1-I Deluxe - AMD Fusion APU E-350 (Ubuntu Server 16.04.1)