Guest User

Untitled

a guest
Mar 30th, 2018
268
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.51 KB | None | 0 0
  1. $ ssh localhost
  2. Permission denied (publickey)
  3.  
  4. OpenSSH_7.5p1 Ubuntu-10ubuntu0.1, OpenSSL 1.0.2g 1 Mar 2016
  5. debug1: Reading configuration data /etc/ssh/ssh_config
  6. debug2: resolving "localhost" port 22
  7. debug2: ssh_connect_direct: needpriv 0
  8. debug1: Connecting to localhost [::1] port 22.
  9. debug1: Connection established.
  10. debug1: identity file /home/marco/.ssh/id_rsa type 1
  11. debug1: key_load_public: No such file or directory
  12. debug1: identity file /home/marco/.ssh/id_rsa-cert type -1
  13. debug1: Enabling compatibility mode for protocol 2.0
  14. debug1: Local version string SSH-2.0-OpenSSH_7.5p1 Ubuntu-10ubuntu0.1
  15. debug1: Remote protocol version 2.0, remote software version OpenSSH_7.5p1 Ubuntu-10ubuntu0.1
  16. debug1: match: OpenSSH_7.5p1 Ubuntu-10ubuntu0.1 pat OpenSSH* compat 0x04000000
  17. debug2: fd 3 setting O_NONBLOCK
  18. debug1: Authenticating to localhost:22 as 'marco'
  19. debug1: SSH2_MSG_KEXINIT sent
  20. debug1: SSH2_MSG_KEXINIT received
  21. debug2: local client KEXINIT proposal
  22. 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
  23. debug2: host key algorithms: ssh-rsa-cert-v01@openssh.com,rsa-sha2-512,rsa-sha2-256,ssh-rsa,ecdsa-sha2-nistp256-cert-v01@openssh.com,ecdsa-sha2-nistp384-cert-v01@openssh.com,ecdsa-sha2-nistp521-cert-v01@openssh.com,ssh-ed25519-cert-v01@openssh.com,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,ssh-ed25519
  24. debug2: ciphers ctos: chacha20-poly1305@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.com,aes128-cbc,aes192-cbc,aes256-cbc
  25. debug2: ciphers stoc: chacha20-poly1305@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.com,aes128-cbc,aes192-cbc,aes256-cbc
  26. 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
  27. 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
  28. debug2: compression ctos: none,zlib@openssh.com,zlib
  29. debug2: compression stoc: none,zlib@openssh.com,zlib
  30. debug2: languages ctos:
  31. debug2: languages stoc:
  32. debug2: first_kex_follows 0
  33. debug2: reserved 0
  34. debug2: peer server KEXINIT proposal
  35. 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-group14-sha256,diffie-hellman-group14-sha1
  36. debug2: host key algorithms: ssh-rsa,rsa-sha2-512,rsa-sha2-256
  37. debug2: ciphers ctos: chacha20-poly1305@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.com
  38. debug2: ciphers stoc: chacha20-poly1305@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.com
  39. 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
  40. 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
  41. debug2: compression ctos: none,zlib@openssh.com
  42. debug2: compression stoc: none,zlib@openssh.com
  43. debug2: languages ctos:
  44. debug2: languages stoc:
  45. debug2: first_kex_follows 0
  46. debug2: reserved 0
  47. debug1: kex: algorithm: curve25519-sha256
  48. debug1: kex: host key algorithm: rsa-sha2-512
  49. debug1: kex: server->client cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none
  50. debug1: kex: client->server cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none
  51. debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
  52. debug1: Server host key: ssh-rsa SHA256:/W4nidPfxU/I6trm5Xws9/c282WmaMuYLUa4hjJAtxg
  53. debug1: Host 'localhost' is known and matches the RSA host key.
  54. debug1: Found key in /home/marco/.ssh/known_hosts:1
  55. debug2: set_newkeys: mode 1
  56. debug1: rekey after 134217728 blocks
  57. debug1: SSH2_MSG_NEWKEYS sent
  58. debug1: expecting SSH2_MSG_NEWKEYS
  59. debug1: SSH2_MSG_NEWKEYS received
  60. debug2: set_newkeys: mode 0
  61. debug1: rekey after 134217728 blocks
  62. debug2: key: /home/marco/.ssh/id_rsa (0x5585d2fc7080), agent
  63. debug2: key: /home/marco/.ssh/id_rsa (0x5585d2fcd580), agent
  64. debug2: key: /home/marco/.ssh/id_rsa (0x5585d2fcd680), agent
  65. debug2: key: marco@marco-X555LJ (0x5585d2fcd780), agent
  66. debug1: SSH2_MSG_EXT_INFO received
  67. debug1: kex_input_ext_info: server-sig-algs=<ssh-ed25519,ssh-rsa,rsa-sha2-256,rsa-sha2-512,ssh-dss,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521>
  68. debug2: service_accept: ssh-userauth
  69. debug1: SSH2_MSG_SERVICE_ACCEPT received
  70. debug1: Authentications that can continue: publickey
  71. debug1: Next authentication method: publickey
  72. debug1: Offering RSA public key: /home/marco/.ssh/id_rsa
  73. debug2: we sent a publickey packet, wait for reply
  74. debug1: Authentications that can continue: publickey
  75. debug1: Offering RSA public key: /home/marco/.ssh/id_rsa
  76. debug2: we sent a publickey packet, wait for reply
  77. debug1: Authentications that can continue: publickey
  78. debug1: Offering RSA public key: /home/marco/.ssh/id_rsa
  79. debug2: we sent a publickey packet, wait for reply
  80. debug1: Authentications that can continue: publickey
  81. debug1: Offering RSA public key: marco@marco-X555LJ
  82. debug2: we sent a publickey packet, wait for reply
  83. debug1: Authentications that can continue: publickey
  84. debug2: we did not send a packet, disable method
  85. debug1: No more authentication methods to try.
  86. Permission denied (publickey).
  87.  
  88. PubkeyAuthentication yes
  89. PasswordAuthentication no
  90. IdentityFile ~/.ssh/id_rsa
  91. Port 22
  92. SendEnv LANG LC_*
  93. HashKnownHosts yes
  94. GSSAPIAuthentication yes
  95.  
  96. SyslogFacility AUTH
  97. LogLevel INFO
  98. AuthorizedKeysFile .ssh/authorized_keys .ssh/authorized_keys2
  99. PasswordAuthentication no
  100. PubkeyAuthentication yes
  101. RSAAuthentication yes
  102. ChallengeResponseAuthentication no
  103. UsePAM no
  104. PrintMotd no
  105. AcceptEnv LANG LC_*
  106. Subsystem sftp /usr/lib/openssh/sftp-server
  107.  
  108. ssh-keygen -t rsa -P '' -f ~/.ssh/id_rsa
  109. cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
  110. chmod 0600 ~/.ssh/authorized_keys
  111. chmod 700 ~/.ssh
Add Comment
Please, Sign In to add comment