ssh autenticazione tramite chiavi

aleritty aleritty@gmail.com
Mer 26 Nov 2008 09:45:36 CET


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1



CoD ha scritto:
> Bad passphrase si riferisce alla passphrase che hai inserito a protezione 
> della chiave.

Lo so, però non mi viene accettata la passphrase! Eppure è quella
giusta, avrò fatto un centinaio di tentativi! La stessa passphrase mi
viene accettata dal pc fisso senza alcun problema!! E' questo il mistero.

> 
> tieni presente inoltre che se il server a cui ti connetti non usa openssh ma 
> ad esempio tectia o un ssh proprietario dovrai convertire le chiavi.

Ok, ma se sul pc fisso la chiave funziona correttamente, ed io la ho
solo copiata tramite pennina, non può esserle successo nulla no?

> 
> Usa -v per avere più informazioni durante la connessione.

Posto il log, non si sa mai che esca qualcosa di utile!


aleritty@toshi:~$ ssh -v -i microkey/microkey ********@*************
OpenSSH_5.1p1 Debian-3ubuntu1, OpenSSL 0.9.8g 19 Oct 2007
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug1: Connecting to ************* [***.***.***.***] port 22.
debug1: Connection established.
debug1: identity file microkey/microkey type -1
debug1: Remote protocol version 2.0, remote software version 3.2.9.1 SSH
Secure Shell (non-commercial)
debug1: no match: 3.2.9.1 SSH Secure Shell (non-commercial)
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_5.1p1 Debian-3ubuntu1
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-cbc hmac-md5 none
debug1: kex: client->server aes128-cbc hmac-md5 none
debug1: sending SSH2_MSG_KEXDH_INIT
debug1: expecting SSH2_MSG_KEXDH_REPLY
debug1: Host '*************' is known and matches the DSA host key.
debug1: Found key in /home/aleritty/.ssh/known_hosts2:1
debug1: ssh_dss_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,password
debug1: Next authentication method: publickey
debug1: Trying private key: microkey/microkey
debug1: PEM_read_PrivateKey failed
debug1: read PEM private key done: type <unknown>
Enter passphrase for key 'microkey/microkey':
debug1: PEM_read_PrivateKey failed
debug1: read PEM private key done: type <unknown>
Enter passphrase for key 'microkey/microkey':
debug1: PEM_read_PrivateKey failed
debug1: read PEM private key done: type <unknown>
Enter passphrase for key 'microkey/microkey':
debug1: PEM_read_PrivateKey failed
debug1: read PEM private key done: type <unknown>
debug1: Next authentication method: password
********@*************'s password:
Authenticated with partial success.
debug1: Authentications that can continue: publickey
debug1: No more authentication methods to try.
Permission denied (publickey).
aleritty@toshi:~$

Ora, come mai non riesco a sbloccare la chiave?? A me il file contenente
la chiave è sembrato a posto (come struttura, ovviamente i dati sono
criptografati...).

Alessio
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkktDKgACgkQ+y5v186ryq8LTQCgyGA4w5yx09i1z5BWaq/WUShE
WCQAnRC+eKnsx0xHAMrxU02RUw9yFymz
=H4j4
-----END PGP SIGNATURE-----


Maggiori informazioni sulla lista glug