Advertisement
Guest User

Untitled

a guest
Jun 17th, 2019
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.32 KB | None | 0 0
  1. LOCALUSERNAME@LOCALUSERNAMEsMBP ~/.ssh ls -al
  2. total 56
  3. drwx------ 7 LOCALUSERNAME staff 224 May 27 20:01 ./
  4. drwxr-xr-x@ 120 LOCALUSERNAME staff 3840 May 27 20:07 ../
  5. -rw------- 1 LOCALUSERNAME staff 1766 Jun 3 2015 github_rsa
  6. -rw-r--r-- 1 LOCALUSERNAME staff 399 Jun 3 2015 github_rsa.pub
  7. -rw------- 1 LOCALUSERNAME staff 1675 Sep 8 2018 id_rsa
  8. -rw-r--r-- 1 LOCALUSERNAME staff 401 Sep 8 2018 id_rsa.pub
  9. -rw-r--r-- 1 LOCALUSERNAME staff 9244 May 25 21:01 known_hosts
  10.  
  11. ssh-copy-id MYUSERNAME@SERVER
  12. /usr/bin/ssh-copy-id: INFO: Source of key(s) to be installed: "/Users/LOCALUSERNAME/.ssh/id_rsa.pub"
  13. /usr/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are already installed
  14. /usr/bin/ssh-copy-id: INFO: 1 key(s) remain to be installed -- if you are prompted now it is to install the new keys
  15. MYUSERNAME@SERVER's password:
  16.  
  17. Number of key(s) added: 1
  18.  
  19. Now try logging into the machine, with: "ssh 'MYUSERNAME@SERVER'"
  20. and check to make sure that only the key(s) you wanted were added.
  21.  
  22. ssh -v MYUSERNAME@SERVER
  23. OpenSSH_7.9p1, LibreSSL 2.7.3
  24. debug1: Reading configuration data /etc/ssh/ssh_config
  25. debug1: /etc/ssh/ssh_config line 48: Applying options for *
  26. debug1: Connecting to SERVER port 22.
  27. debug1: Connection established.
  28. debug1: identity file /Users/LOCALUSERNAME/.ssh/id_rsa type 0
  29. debug1: identity file /Users/LOCALUSERNAME/.ssh/id_rsa-cert type -1
  30. debug1: identity file /Users/LOCALUSERNAME/.ssh/id_dsa type -1
  31. debug1: identity file /Users/LOCALUSERNAME/.ssh/id_dsa-cert type -1
  32. debug1: identity file /Users/LOCALUSERNAME/.ssh/id_ecdsa type -1
  33. debug1: identity file /Users/LOCALUSERNAME/.ssh/id_ecdsa-cert type -1
  34. debug1: identity file /Users/LOCALUSERNAME/.ssh/id_ed25519 type -1
  35. debug1: identity file /Users/LOCALUSERNAME/.ssh/id_ed25519-cert type -1
  36. debug1: identity file /Users/LOCALUSERNAME/.ssh/id_xmss type -1
  37. debug1: identity file /Users/LOCALUSERNAME/.ssh/id_xmss-cert type -1
  38. debug1: Local version string SSH-2.0-OpenSSH_7.9
  39. debug1: Remote protocol version 2.0, remote software version OpenSSH_7.4
  40. 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
  41. debug1: Authenticating to SERVER:22 as 'MYUSERNAME'
  42. debug1: SSH2_MSG_KEXINIT sent
  43. debug1: SSH2_MSG_KEXINIT received
  44. debug1: kex: algorithm: curve25519-sha256
  45. debug1: kex: host key algorithm: ecdsa-sha2-nistp256
  46. debug1: kex: server->client cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none
  47. debug1: kex: client->server cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none
  48. debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
  49. debug1: Server host key: ecdsa-sha2-nistp256 SHA256:~~SOMESTRING~~
  50. debug1: Host 'SERVER' is known and matches the ECDSA host key.
  51. debug1: Found key in /Users/LOCALUSERNAME/.ssh/known_hosts:25
  52. debug1: rekey after 134217728 blocks
  53. debug1: SSH2_MSG_NEWKEYS sent
  54. debug1: expecting SSH2_MSG_NEWKEYS
  55. debug1: SSH2_MSG_NEWKEYS received
  56. debug1: rekey after 134217728 blocks
  57. debug1: Will attempt key: /Users/LOCALUSERNAME/.ssh/id_rsa RSA SHA256:~~REDACTED ID_RSA~~
  58. debug1: Will attempt key: /Users/LOCALUSERNAME/.ssh/id_dsa
  59. debug1: Will attempt key: /Users/LOCALUSERNAME/.ssh/id_ecdsa
  60. debug1: Will attempt key: /Users/LOCALUSERNAME/.ssh/id_ed25519
  61. debug1: Will attempt key: /Users/LOCALUSERNAME/.ssh/id_xmss
  62. debug1: SSH2_MSG_EXT_INFO received
  63. debug1: kex_input_ext_info: server-sig-algs=<rsa-sha2-256,rsa-sha2-512>
  64. debug1: SSH2_MSG_SERVICE_ACCEPT received
  65. debug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic,password
  66. debug1: Next authentication method: publickey
  67. debug1: Offering public key: /Users/LOCALUSERNAME/.ssh/id_rsa RSA SHA256:~~REDACTED ID_RSA~~
  68. debug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic,password
  69. debug1: Trying private key: /Users/LOCALUSERNAME/.ssh/id_dsa
  70. debug1: Trying private key: /Users/LOCALUSERNAME/.ssh/id_ecdsa
  71. debug1: Trying private key: /Users/LOCALUSERNAME/.ssh/id_ed25519
  72. debug1: Trying private key: /Users/LOCALUSERNAME/.ssh/id_xmss
  73. debug1: Next authentication method: password
  74. MYUSERNAME@SERVER's password:
  75.  
  76.  
  77. MYUSERNAME@SERVER ~/.ssh ls -al
  78. total 7
  79. drwx------ 2 MYUSERNAME users 2048 Sep 8 2018 .
  80. drwxr-xr-x 21 MYUSERNAME wheel 4096 May 27 20:07 ..
  81. -rw------- 1 MYUSERNAME users 802 May 27 20:01 authorized_keys
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement