Advertisement
Guest User

Untitled

a guest
Feb 27th, 2019
199
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.49 KB | None | 0 0
  1. $ ssh-keygen -D /usr/lib/opensc-pkcs11.so -e
  2. ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAAAgQDJ[...]
  3.  
  4. Protocol 2
  5. SyslogFacility AUTHPRIV
  6. PermitRootLogin no
  7. StrictModes yes
  8. PubkeyAuthentication yes
  9. AuthorizedKeysFile .ssh/authorized_keys
  10. PubkeyAcceptedKeyTypes +ssh-rsa
  11. PasswordAuthentication yes
  12. ChallengeResponseAuthentication no
  13. GSSAPIAuthentication yes
  14. GSSAPICleanupCredentials yes
  15. UsePAM yes
  16. AcceptEnv LANG LC_CTYPE LC_NUMERIC LC_TIME LC_COLLATE LC_MONETARY LC_MESSAGES
  17. AcceptEnv LC_PAPER LC_NAME LC_ADDRESS LC_TELEPHONE LC_MEASUREMENT
  18. AcceptEnv LC_IDENTIFICATION LC_ALL LANGUAGE
  19. AcceptEnv XMODIFIERS
  20. X11Forwarding yes
  21. Subsystem sftp /usr/libexec/openssh/sftp-server
  22.  
  23. $ ssh -p 8022 -vv -I /usr/lib64/pkcs11/opensc-pkcs11.so matteo@XXX.XXX.XXX.XXX
  24.  
  25. OpenSSH_7.9p1, OpenSSL 1.1.1a 20 Nov 2018
  26. debug1: Reading configuration data /home/matteo/.ssh/config
  27. debug1: /home/matteo/.ssh/config line 2: Applying options for *
  28. debug1: /home/matteo/.ssh/config line 8: Applying options for 159.213.*
  29. debug1: Reading configuration data /etc/ssh/ssh_config
  30. debug2: resolve_canonicalize: hostname XXX.XXX.XXX.XXX is address
  31. debug2: ssh_connect_direct
  32. debug1: Connecting to XXX.XXX.XXX.XXX [XXX.XXX.XXX.XXX] port 8022.
  33. debug1: Connection established.
  34. debug1: provider /usr/lib64/pkcs11/opensc-pkcs11.so: manufacturerID <OpenSC Project> cryptokiVersion 2.20 libraryDescription <OpenSC smartcard framework> libraryVersion 0.19
  35. debug1: provider /usr/lib64/pkcs11/opensc-pkcs11.so slot 0: label <PIN CNS0 (MATTEO)> manufacturerID <IC: STMicroelectronics; mask: A> model <PKCS#15 emulate> serial <700000082531237> flags 0x4040c
  36. debug1: have 1 keys
  37. debug1: pkcs11_provider_unref: 0x55a1b3e2a010 refcount 2
  38. debug1: identity file /home/matteo/.ssh/id_rsa type -1
  39. debug1: identity file /home/matteo/.ssh/id_rsa-cert type -1
  40. debug1: identity file /home/matteo/.ssh/id_dsa type 1
  41. debug1: identity file /home/matteo/.ssh/id_dsa-cert type -1
  42. debug1: identity file /home/matteo/.ssh/id_ecdsa type -1
  43. debug1: identity file /home/matteo/.ssh/id_ecdsa-cert type -1
  44. debug1: identity file /home/matteo/.ssh/id_ed25519 type -1
  45. debug1: identity file /home/matteo/.ssh/id_ed25519-cert type -1
  46. debug1: identity file /home/matteo/.ssh/id_xmss type -1
  47. debug1: identity file /home/matteo/.ssh/id_xmss-cert type -1
  48. debug1: Local version string SSH-2.0-OpenSSH_7.9
  49. debug1: Remote protocol version 2.0, remote software version OpenSSH_7.4
  50. debug1: match: OpenSSH_7.4 pat OpenSSH_7.0*,OpenSSH_7.1*,OpenSSH_7.2*,OpenSSH_7.3*,OpenSSH_7.4*,OpenSSH_7.5*,OpenSSH_7.6*,OpenSSH_7.7* compat 0x04000002
  51. debug2: fd 3 setting O_NONBLOCK
  52. debug1: Authenticating to XXX.XXX.XXX.XXX:8022 as 'matteo'
  53. debug1: SSH2_MSG_KEXINIT sent
  54. debug1: SSH2_MSG_KEXINIT received
  55. debug2: local client KEXINIT proposal
  56. 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,diffie-hellman-group1-sha1,ext-info-c
  57. debug2: host key algorithms: 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,rsa-sha2-512-cert-v01@openssh.com,rsa-sha2-256-cert-v01@openssh.com,ssh-rsa-cert-v01@openssh.com,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,ssh-ed25519,rsa-sha2-512,rsa-sha2-256,ssh-rsa
  58. debug2: ciphers ctos: chacha20-poly1305@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.com
  59. debug2: ciphers stoc: chacha20-poly1305@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.com
  60. 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
  61. 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
  62. debug2: compression ctos: none,zlib@openssh.com,zlib
  63. debug2: compression stoc: none,zlib@openssh.com,zlib
  64. debug2: languages ctos:
  65. debug2: languages stoc:
  66. debug2: first_kex_follows 0
  67. debug2: reserved 0
  68. debug2: peer server KEXINIT proposal
  69. 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,diffie-hellman-group1-sha1
  70. debug2: host key algorithms: ssh-rsa,rsa-sha2-512,rsa-sha2-256,ecdsa-sha2-nistp256,ssh-ed25519
  71. 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,blowfish-cbc,cast128-cbc,3des-cbc
  72. 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,blowfish-cbc,cast128-cbc,3des-cbc
  73. 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
  74. 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
  75. debug2: compression ctos: none,zlib@openssh.com
  76. debug2: compression stoc: none,zlib@openssh.com
  77. debug2: languages ctos:
  78. debug2: languages stoc:
  79. debug2: first_kex_follows 0
  80. debug2: reserved 0
  81. debug1: kex: algorithm: curve25519-sha256
  82. debug1: kex: host key algorithm: ecdsa-sha2-nistp256
  83. debug1: kex: server->client cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none
  84. debug1: kex: client->server cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none
  85. debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
  86. debug1: Server host key: ecdsa-sha2-nistp256 SHA256:4B9UqbstaHrknxwJHHuvx5pAHGDLvPxMSAEUWt6YyjE
  87. debug1: checking without port identifier
  88. debug1: Host 'XXX.XXX.XXX.XXX' is known and matches the ECDSA host key.
  89. debug1: Found key in /home/matteo/.ssh/known_hosts:1
  90. debug1: found matching key w/out port
  91. debug2: set_newkeys: mode 1
  92. debug1: rekey after 134217728 blocks
  93. debug1: SSH2_MSG_NEWKEYS sent
  94. debug1: expecting SSH2_MSG_NEWKEYS
  95. debug1: SSH2_MSG_NEWKEYS received
  96. debug2: set_newkeys: mode 0
  97. debug1: rekey after 134217728 blocks
  98. debug1: Skipping ssh-rsa key /usr/lib64/pkcs11/opensc-pkcs11.so - not in PubkeyAcceptedKeyTypes
  99. debug1: pkcs11_provider_unref: 0x55a1b3e2a010 refcount 2
  100. debug1: Will attempt key: /home/matteo/.ssh/id_rsa
  101. debug1: Will attempt key: /home/matteo/.ssh/id_dsa DSA SHA256:Lrv0jwwVeXGDOt9g0cxRg9h3E5rkcLF8Lkm+7qJSKoo
  102. debug1: Will attempt key: /home/matteo/.ssh/id_ecdsa
  103. debug1: Will attempt key: /home/matteo/.ssh/id_ed25519
  104. debug1: Will attempt key: /home/matteo/.ssh/id_xmss
  105. debug2: pubkey_prepare: done
  106. debug1: SSH2_MSG_EXT_INFO received
  107. debug1: kex_input_ext_info: server-sig-algs=<rsa-sha2-256,rsa-sha2-512>
  108. debug2: service_accept: ssh-userauth
  109. debug1: SSH2_MSG_SERVICE_ACCEPT received
  110. debug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic,password
  111. debug1: Next authentication method: publickey
  112. debug1: Trying private key: /home/matteo/.ssh/id_rsa
  113. debug1: Offering public key: /home/matteo/.ssh/id_dsa DSA SHA256:Lrv0jwwVeXGDOt9g0cxRg9h3E5rkcLF8Lkm+7qJSKoo
  114. debug2: we sent a publickey packet, wait for reply
  115. debug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic,password
  116. debug1: Trying private key: /home/matteo/.ssh/id_ecdsa
  117. debug1: Trying private key: /home/matteo/.ssh/id_ed25519
  118. debug1: Trying private key: /home/matteo/.ssh/id_xmss
  119. debug2: we did not send a packet, disable method
  120. debug1: Next authentication method: password
  121.  
  122. matteo@XXX.XXX.XXX.XXX's password:
  123.  
  124. debug1: provider /usr/lib64/pkcs11/opensc-pkcs11.so: manufacturerID <OpenSC Project> cryptokiVersion 2.20 libraryDescription <OpenSC smartcard framework> libraryVersion 0.19
  125. debug1: provider /usr/lib64/pkcs11/opensc-pkcs11.so slot 0: label <PIN CNS0 (MATTEO)> manufacturerID <IC: STMicroelectronics; mask: A> model <PKCS#15 emulate> serial <700000082531237> flags 0x4040c
  126. debug1: have 1 keys
  127. debug1: pkcs11_provider_unref: 0x55a1b3e2a010 refcount 2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement