Bonjour, j'expose le contexte : J'utilisais mon pc pour me connecter en ssh sur un serveur via un couple clef privé/public, suite au crash du pc j'ai réimporté mes clefs public/privé sur une nouvelle machine. Cependant impossible de me faire authentifier, ci-dessous les logs. Je suis sous LUbuntu 17.04 j'étais avant la migration en Ubuntu 16.04

auriez-vous une idée ?

Le serveur n'a pas changé c'est bien depuis mon changement de client

cordialement

ssh -vvv newuser@ippublic -p 2222

debug3: authmethod_is_enabled publickey
debug1: Next authentication method: publickey
debug1: Offering RSA public key: /home/newuser/.ssh/id_rsa
debug3: send_pubkey_test
debug3: send packet: type 50
debug2: we sent a publickey packet, wait for reply
debug3: receive packet: type 60
debug1: Server accepts key: pkalg ssh-rsa blen 279
debug2: input_userauth_pk_ok: fp SHA256:lgStringOGEDITED3BkRx/MWzGBDRANDOMLY/BHfRufL6k
debug3: sign_and_send_pubkey: RSA SHA256:lgStringOGEDITED3BkRx/MWzGBDRANDOMLY/BHfRufL6k
debug3: send packet: type 50
debug3: receive packet: type 51
debug1: Authentications that can continue: publickey
debug2: we did not send a packet, disable method
debug1: No more authentication methods to try.
Permission denied (publickey).

cat /etc/ssh/ssh_config


Code bash : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
 
Host *
#   ForwardAgent no
#   ForwardX11 no
#   ForwardX11Trusted yes
#   RhostsRSAAuthentication no
#RSAAuthentication yes
PasswordAuthentication no
#   HostbasedAuthentication no
#   GSSAPIAuthentication no
#   GSSAPIDelegateCredentials no
#   GSSAPIKeyExchange no
#   GSSAPITrustDNS no
#   BatchMode no
#   CheckHostIP yes
#   AddressFamily any
#   ConnectTimeout 0
#   StrictHostKeyChecking ask
#   IdentityFile ~/.ssh/identity
IdentityFile ~/.ssh/id_rsa
#   IdentityFile ~/.ssh/id_dsa
#   IdentityFile ~/.ssh/id_ecdsa
#   IdentityFile ~/.ssh/id_ed25519
#   Port 22
Protocol 2
#   Cipher 3des
#   Ciphers aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc
#   MACs hmac-md5,hmac-sha1,umac-64@openssh.com,hmac-ripemd160
#   EscapeChar ~
#   Tunnel no
#   TunnelDevice any:any
#   PermitLocalCommand no
#   VisualHostKey no
#   ProxyCommand ssh -q -W %h:%p gateway.example.com
#   RekeyLimit 1G 1h
    SendEnv LANG LC_*
    HashKnownHosts yes
    GSSAPIAuthentication yes

ls -l
Code bash : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
 
newuser@TEMPVMLOCAL:~/.ssh$ ls -l
total 16
-r-------- 1 newuser newuser 1675 oct.  21 15:22 id_rsa
-r-------- 1 newuser newuser  405 oct.  21 16:20 id_rsa.pub
-rw-r--r-- 1 newuser newuser  222 févr. 23 19:10 known_hosts