Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
1711 connectés 

  FORUM HardWare.fr
  Linux et OS Alternatifs
  réseaux et sécurité

  Je ne peut pas établir ma connexion SSH.

 


 Mot :   Pseudo :  
 
Bas de page
Auteur Sujet :

Je ne peut pas établir ma connexion SSH.

n°1442845
bluesty
Apprenti développeur
Posté le 06-01-2020 à 13:13:12  profilanswer
 

Bonjour à tous,  
Je viens vers vous pour vous exposer mon probleme et obtenir de l'aide.
Je viens de débuter un stage en entreprise et je travaille avec mon ordinateur windows, et je doit me connecter a un serveur Unbuntu en ssh.
la connection s'établie bien chez mon collegue, mais j'ai l'impression que ma configuration .ssh n'est pas bonne, voici les messages d'erreurs:
 

Code :
  1. C:\Users\Bijou>ssh -vvv xxx@xxxxx -p 22
  2. OpenSSH_for_Windows_7.7p1, LibreSSL 2.6.5
  3. debug3: Failed to open file:C:/Users/Bijou/.ssh/config error:2
  4. debug3: Failed to open file:C:/ProgramData/ssh/ssh_config error:2
  5. debug2: resolving "ftp.cluster013.hosting.ovh.net" port 22
  6. debug2: ssh_connect_direct: needpriv 0
  7. debug1: Connecting to ftp.cluster013.hosting.ovh.net [51.68.11.220] port 22.
  8. debug1: Connection established.
  9. debug3: Failed to open file:C:/Users/Bijou/.ssh/id_rsa error:2
  10. debug3: Failed to open file:C:/Users/Bijou/.ssh/id_rsa.pub error:2
  11. debug1: key_load_public: No such file or directory
  12. debug1: identity file C:\\Users\\Bijou/.ssh/id_rsa type -1
  13. debug3: Failed to open file:C:/Users/Bijou/.ssh/id_rsa-cert error:2
  14. debug3: Failed to open file:C:/Users/Bijou/.ssh/id_rsa-cert.pub error:2
  15. debug1: key_load_public: No such file or directory
  16. debug1: identity file C:\\Users\\Bijou/.ssh/id_rsa-cert type -1
  17. debug3: Failed to open file:C:/Users/Bijou/.ssh/id_dsa error:2
  18. debug3: Failed to open file:C:/Users/Bijou/.ssh/id_dsa.pub error:2
  19. debug1: key_load_public: No such file or directory
  20. debug1: identity file C:\\Users\\Bijou/.ssh/id_dsa type -1
  21. debug3: Failed to open file:C:/Users/Bijou/.ssh/id_dsa-cert error:2
  22. debug3: Failed to open file:C:/Users/Bijou/.ssh/id_dsa-cert.pub error:2
  23. debug1: key_load_public: No such file or directory
  24. debug1: identity file C:\\Users\\Bijou/.ssh/id_dsa-cert type -1
  25. debug3: Failed to open file:C:/Users/Bijou/.ssh/id_ecdsa error:2
  26. debug3: Failed to open file:C:/Users/Bijou/.ssh/id_ecdsa.pub error:2
  27. debug1: key_load_public: No such file or directory
  28. debug1: identity file C:\\Users\\Bijou/.ssh/id_ecdsa type -1
  29. debug3: Failed to open file:C:/Users/Bijou/.ssh/id_ecdsa-cert error:2
  30. debug3: Failed to open file:C:/Users/Bijou/.ssh/id_ecdsa-cert.pub error:2
  31. debug1: key_load_public: No such file or directory
  32. debug1: identity file C:\\Users\\Bijou/.ssh/id_ecdsa-cert type -1
  33. debug3: Failed to open file:C:/Users/Bijou/.ssh/id_ed25519 error:2
  34. debug3: Failed to open file:C:/Users/Bijou/.ssh/id_ed25519.pub error:2
  35. debug1: key_load_public: No such file or directory
  36. debug1: identity file C:\\Users\\Bijou/.ssh/id_ed25519 type -1
  37. debug3: Failed to open file:C:/Users/Bijou/.ssh/id_ed25519-cert error:2
  38. debug3: Failed to open file:C:/Users/Bijou/.ssh/id_ed25519-cert.pub error:2
  39. debug1: key_load_public: No such file or directory
  40. debug1: identity file C:\\Users\\Bijou/.ssh/id_ed25519-cert type -1
  41. debug3: Failed to open file:C:/Users/Bijou/.ssh/id_xmss error:2
  42. debug3: Failed to open file:C:/Users/Bijou/.ssh/id_xmss.pub error:2
  43. debug1: key_load_public: No such file or directory
  44. debug1: identity file C:\\Users\\Bijou/.ssh/id_xmss type -1
  45. debug3: Failed to open file:C:/Users/Bijou/.ssh/id_xmss-cert error:2
  46. debug3: Failed to open file:C:/Users/Bijou/.ssh/id_xmss-cert.pub error:2
  47. debug1: key_load_public: No such file or directory
  48. debug1: identity file C:\\Users\\Bijou/.ssh/id_xmss-cert type -1
  49. debug1: Local version string SSH-2.0-OpenSSH_for_Windows_7.7
  50. debug1: Remote protocol version 2.0, remote software version OpenSSH_6.7p1
  51. debug1: match: OpenSSH_6.7p1 pat OpenSSH* compat 0x04000000
  52. debug2: fd 3 setting O_NONBLOCK
  53. debug1: Authenticating to ftp.cluster013.hosting.ovh.net:22 as 'xxxx'
  54. debug3: hostkeys_foreach: reading file "C:\\Users\\Bijou/.ssh/known_hosts"
  55. debug3: record_hostkey: found key type ED25519 in file C:\\Users\\Bijou/.ssh/known_hosts:3
  56. debug3: load_hostkeys: loaded 1 keys from ftp.cluster013.hosting.ovh.net
  57. debug3: Failed to open file:C:/Users/Bijou/.ssh/known_hosts2 error:2
  58. debug3: Failed to open file:C:/ProgramData/ssh/ssh_known_hosts error:2
  59. debug3: Failed to open file:C:/ProgramData/ssh/ssh_known_hosts2 error:2
  60. debug3: order_hostkeyalgs: prefer hostkeyalgs: ssh-ed25519-cert-v01@openssh.com,ssh-ed25519
  61. debug3: send packet: type 20
  62. debug1: SSH2_MSG_KEXINIT sent
  63. debug3: receive packet: type 20
  64. debug1: SSH2_MSG_KEXINIT received
  65. debug2: local client KEXINIT proposal
  66. debug2: KEX algorithms: curve25519-sha256,curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha256,diffie-hellman-group14-sha1,ext-info-c
  67. debug2: host key algorithms: ssh-ed25519-cert-v01@openssh.com,ssh-ed25519,ecdsa-sha2-nistp256-cert-v01@openssh.com,ecdsa-sha2-nistp384-cert-v01@openssh.com,ecdsa-sha2-nistp521-cert-v01@openssh.com,ssh-rsa-cert-v01@openssh.com,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,rsa-sha2-512,rsa-sha2-256,ssh-rsa
  68. debug2: ciphers ctos: chacha20-poly1305@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.com
  69. debug2: ciphers stoc: chacha20-poly1305@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.com
  70. debug2: MACs ctos: umac-64-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-64@openssh.com,umac-128@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1
  71. debug2: MACs stoc: umac-64-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-64@openssh.com,umac-128@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1
  72. debug2: compression ctos: none
  73. debug2: compression stoc: none
  74. debug2: languages ctos:
  75. debug2: languages stoc:
  76. debug2: first_kex_follows 0
  77. debug2: reserved 0
  78. debug2: peer server KEXINIT proposal
  79. debug2: KEX algorithms: curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group14-sha1
  80. debug2: host key algorithms: ssh-rsa,ssh-ed25519
  81. debug2: ciphers ctos: aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.com,chacha20-poly1305@openssh.com
  82. debug2: ciphers stoc: aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.com,chacha20-poly1305@openssh.com
  83. debug2: MACs ctos: umac-64-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-64@openssh.com,umac-128@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1
  84. debug2: MACs stoc: umac-64-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-64@openssh.com,umac-128@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1
  85. debug2: compression ctos: none,zlib@openssh.com
  86. debug2: compression stoc: none,zlib@openssh.com
  87. debug2: languages ctos:
  88. debug2: languages stoc:
  89. debug2: first_kex_follows 0
  90. debug2: reserved 0
  91. debug1: kex: algorithm: curve25519-sha256@libssh.org
  92. debug1: kex: host key algorithm: ssh-ed25519
  93. debug1: kex: server->client cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none
  94. debug1: kex: client->server cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none
  95. debug3: send packet: type 30
  96. debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
  97. debug3: receive packet: type 31
  98. debug1: Server host key: ssh-ed25519 SHA256:e3WLV2MBDH04jLYQGk5K1t6kmUnnXaFa/0qMAxblAdg
  99. debug3: hostkeys_foreach: reading file "C:\\Users\\Bijou/.ssh/known_hosts"
  100. debug3: record_hostkey: found key type ED25519 in file C:\\Users\\Bijou/.ssh/known_hosts:3
  101. debug3: load_hostkeys: loaded 1 keys from ftp.cluster013.hosting.ovh.net
  102. debug3: Failed to open file:C:/Users/Bijou/.ssh/known_hosts2 error:2
  103. debug3: Failed to open file:C:/ProgramData/ssh/ssh_known_hosts error:2
  104. debug3: Failed to open file:C:/ProgramData/ssh/ssh_known_hosts2 error:2
  105. debug3: hostkeys_foreach: reading file "C:\\Users\\Bijou/.ssh/known_hosts"
  106. debug3: record_hostkey: found key type ED25519 in file C:\\Users\\Bijou/.ssh/known_hosts:3
  107. debug3: load_hostkeys: loaded 1 keys from 51.68.11.220
  108. debug3: Failed to open file:C:/Users/Bijou/.ssh/known_hosts2 error:2
  109. debug3: Failed to open file:C:/ProgramData/ssh/ssh_known_hosts error:2
  110. debug3: Failed to open file:C:/ProgramData/ssh/ssh_known_hosts2 error:2
  111. debug1: Host 'ftp.cluster013.hosting.ovh.net' is known and matches the ED25519 host key.
  112. debug1: Found key in C:\\Users\\Bijou/.ssh/known_hosts:3
  113. debug3: send packet: type 21
  114. debug2: set_newkeys: mode 1
  115. debug1: rekey after 134217728 blocks
  116. debug1: SSH2_MSG_NEWKEYS sent
  117. debug1: expecting SSH2_MSG_NEWKEYS
  118. debug3: receive packet: type 21
  119. debug1: SSH2_MSG_NEWKEYS received
  120. debug2: set_newkeys: mode 0
  121. debug1: rekey after 134217728 blocks
  122. debug3: unable to connect to pipe \\\\.\\pipe\\openssh-ssh-agent, error: 2
  123. debug1: pubkey_prepare: ssh_get_authentication_socket: No such file or directory
  124. debug2: key: C:\\Users\\Bijou/.ssh/id_rsa (0000000000000000)
  125. debug2: key: C:\\Users\\Bijou/.ssh/id_dsa (0000000000000000)
  126. debug2: key: C:\\Users\\Bijou/.ssh/id_ecdsa (0000000000000000)
  127. debug2: key: C:\\Users\\Bijou/.ssh/id_ed25519 (0000000000000000)
  128. debug2: key: C:\\Users\\Bijou/.ssh/id_xmss (0000000000000000)
  129. debug3: send packet: type 5
  130. debug3: receive packet: type 6
  131. debug2: service_accept: ssh-userauth
  132. debug1: SSH2_MSG_SERVICE_ACCEPT received
  133. debug3: send packet: type 50
  134. debug3: receive packet: type 51
  135. debug1: Authentications that can continue: publickey,password
  136. debug3: start over, passed a different list publickey,password
  137. debug3: preferred publickey,keyboard-interactive,password
  138. debug3: authmethod_lookup publickey
  139. debug3: remaining preferred: keyboard-interactive,password
  140. debug3: authmethod_is_enabled publickey
  141. debug1: Next authentication method: publickey
  142. debug1: Trying private key: C:\\Users\\Bijou/.ssh/id_rsa
  143. debug3: no such identity: C:\\Users\\Bijou/.ssh/id_rsa: No such file or directory
  144. debug1: Trying private key: C:\\Users\\Bijou/.ssh/id_dsa
  145. debug3: no such identity: C:\\Users\\Bijou/.ssh/id_dsa: No such file or directory
  146. debug1: Trying private key: C:\\Users\\Bijou/.ssh/id_ecdsa
  147. debug3: no such identity: C:\\Users\\Bijou/.ssh/id_ecdsa: No such file or directory
  148. debug1: Trying private key: C:\\Users\\Bijou/.ssh/id_ed25519
  149. debug3: no such identity: C:\\Users\\Bijou/.ssh/id_ed25519: No such file or directory
  150. debug1: Trying private key: C:\\Users\\Bijou/.ssh/id_xmss
  151. debug3: no such identity: C:\\Users\\Bijou/.ssh/id_xmss: No such file or directory
  152. debug2: we did not send a packet, disable method
  153. debug3: authmethod_lookup password
  154. debug3: remaining preferred: ,password
  155. debug3: authmethod_is_enabled password
  156. debug1: Next authentication method: password
  157. debug3: failed to open file:C:/dev/tty error:3
  158. debug1: read_passphrase: can't open /dev/tty: No such file or directory
  159. aaaallllliaeazngeazzro@ftp.cluster013.hosting.ovh.net's password:
  160. debug3: send packet: type 50
  161. debug2: we sent a password packet, wait for reply
  162. debug3: receive packet: type 51
  163. debug1: Authentications that can continue: publickey,password
  164. Permission denied, please try again.
  165. debug3: failed to open file:C:/dev/tty error:3
  166. debug1: read_passphrase: can't open /dev/tty: No such file or directory
  167. xxxx@xxxxxxxxxxs password:

 
 
Merci de votre aide précieuse  :(


Message édité par bluesty le 07-01-2020 à 15:25:44

---------------
Cordialement
mood
Publicité
Posté le 06-01-2020 à 13:13:12  profilanswer
 

n°1442846
Je@nb
Kindly give dime
Posté le 06-01-2020 à 13:25:08  profilanswer
 

Ce sujet a été déplacé de la catégorie Systèmes & Réseaux Pro vers la categorie Linux et OS Alternatifs par Je@nb

n°1442910
frenchieis​verige
Nej, men HEJSAN!
Posté le 07-01-2020 à 15:21:25  profilanswer
 

:hello:

 

D'après tes logs, je dirais que tu aurais un soucis au niveau de ta clé publique. Le client ssh n'arrive pas à la trouver.


---------------
[TU]: Linux Mint | NAS Homemade | Noyau Linux | OpenMediaVault | Windows 11
n°1442911
bluesty
Apprenti développeur
Posté le 07-01-2020 à 15:23:08  profilanswer
 

ou puis-je trouver cette fameuse clé ? je doit télécharger les fichiers qu'il ne trouve pas ?

n°1442943
tantal_fr
Chipeur, arrête de chiper !
Posté le 08-01-2020 à 08:53:40  profilanswer
 

Bonjour,  
 
Je ne suis pas expert SSH mais a priori, voilà comment ça fonctionne :  

  • il faut générer une paire de clef,  sur le poste client, avec la commande

    ssh-keygen

  • copier la clef publique sur le poste server à la fin du fichier

    ~/.ssh/authorized_keys

     


La clef publique finit par pub
La clef privée ne doit jamais quitter le poste où elle a été générée


Aller à :
Ajouter une réponse
  FORUM HardWare.fr
  Linux et OS Alternatifs
  réseaux et sécurité

  Je ne peut pas établir ma connexion SSH.

 

Sujets relatifs
Probléme connexion session graphiqueConnexion VPN possible sous Linux?
SSH - clé publiqueCréer une connexion de port série virtuel sur TCP
désactivation de tous les services de connexion sauf SFTPmodes de connexion ssh
Serveur Ubuntu KVM + Kimchi VPS innaccessible en SSH de l'exterieurVirtualBox : Pb de connexion ssh sur CentoS 7.5
[CLOS] connexion mobile instableConnexion Ubic
Plus de sujets relatifs à : Je ne peut pas établir ma connexion SSH.


Copyright © 1997-2022 Hardware.fr SARL (Signaler un contenu illicite / Données personnelles) / Groupe LDLC / Shop HFR