Advertisement
Guest User

Untitled

a guest
Jul 7th, 2015
201
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.76 KB | None | 0 0
  1. SubSystem nas internal-sftp
  2. Match Group nas
  3. ChrootDirectory %h
  4. ForceCommand internal-sftp
  5. AllowTcpForwarding no
  6.  
  7. sudo groupadd nas
  8. sudo gpasswd -a nasaccess nas
  9.  
  10. sudo chown root:nasaccess /home/nasaccess
  11. sudo chmod 750 /home/nasaccess
  12.  
  13. sudo mkdir /home/nasaccess/files
  14. sudo chown nasaccess: /home/nasaccess/files
  15. sudo chmod 750 /home/nasaccess/files
  16.  
  17. Write failed: Broken pipe
  18. Couldn't read packet: Connection reset by peer
  19.  
  20. sudo sftp -vvv nasaccess@localhost
  21. OpenSSH_6.0p1 Debian-4+deb7u2, OpenSSL 1.0.1e 11 Feb 2013
  22. debug1: Reading configuration data /etc/ssh/ssh_config
  23. debug1: /etc/ssh/ssh_config line 19: Applying options for *
  24. debug2: ssh_connect: needpriv 0
  25. debug1: Connecting to localhost [127.0.0.1] port 22.
  26. debug1: Connection established.
  27. debug1: permanently_set_uid: 0/0
  28. debug1: identity file /root/.ssh/id_rsa type -1
  29. debug1: identity file /root/.ssh/id_rsa-cert type -1
  30. debug1: identity file /root/.ssh/id_dsa type -1
  31. debug1: identity file /root/.ssh/id_dsa-cert type -1
  32. debug1: identity file /root/.ssh/id_ecdsa type -1
  33. debug1: identity file /root/.ssh/id_ecdsa-cert type -1
  34. debug1: Remote protocol version 2.0, remote software version OpenSSH_6.0p1 Debia n-4+deb7u2
  35. debug1: match: OpenSSH_6.0p1 Debian-4+deb7u2 pat OpenSSH*
  36. debug1: Enabling compatibility mode for protocol 2.0
  37. debug1: Local version string SSH-2.0-OpenSSH_6.0p1 Debian-4+deb7u2
  38. debug2: fd 3 setting O_NONBLOCK
  39. debug3: load_hostkeys: loading entries for host "localhost" from file "/root/.ss h/known_hosts"
  40. debug3: load_hostkeys: found key type ECDSA in file /root/.ssh/known_hosts:1
  41. debug3: load_hostkeys: loaded 1 keys
  42. debug3: order_hostkeyalgs: prefer hostkeyalgs: ecdsa-sha2-nistp256-cert-v01@open ssh.com,ecdsa-sha2-nistp384-cert-v01@openssh.com,ecdsa-sha2-nistp521-cert-v01@op enssh.com,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521
  43. debug1: SSH2_MSG_KEXINIT sent
  44. debug1: SSH2_MSG_KEXINIT received
  45. debug2: kex_parse_kexinit: ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp 521,diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diff ie-hellman-group14-sha1,diffie-hellman-group1-sha1
  46. debug2: kex_parse_kexinit: ecdsa-sha2-nistp256-cert-v01@openssh.com,ecdsa-sha2-n istp384-cert-v01@openssh.com,ecdsa-sha2-nistp521-cert-v01@openssh.com,ecdsa-sha2 -nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,ssh-rsa-cert-v01@openssh.com,s sh-dss-cert-v01@openssh.com,ssh-rsa-cert-v00@openssh.com,ssh-dss-cert-v00@openss h.com,ssh-rsa,ssh-dss
  47. debug2: kex_parse_kexinit: aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour12 8,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,rij ndael-cbc@lysator.liu.se
  48. debug2: kex_parse_kexinit: aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour12 8,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,rij ndael-cbc@lysator.liu.se
  49. debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,umac-64@openssh.com,hmac-sha2-256, hmac-sha2-256-96,hmac-sha2-512,hmac-sha2-512-96,hmac-ripemd160,hmac-ripemd160@op enssh.com,hmac-sha1-96,hmac-md5-96
  50. debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,umac-64@openssh.com,hmac-sha2-256, hmac-sha2-256-96,hmac-sha2-512,hmac-sha2-512-96,hmac-ripemd160,hmac-ripemd160@op enssh.com,hmac-sha1-96,hmac-md5-96
  51. debug2: kex_parse_kexinit: none,zlib@openssh.com,zlib
  52. debug2: kex_parse_kexinit: none,zlib@openssh.com,zlib
  53. debug2: kex_parse_kexinit:
  54. debug2: kex_parse_kexinit:
  55. debug2: kex_parse_kexinit: first_kex_follows 0
  56. debug2: kex_parse_kexinit: reserved 0
  57. debug2: kex_parse_kexinit: ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp 521,diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diff ie-hellman-group14-sha1,diffie-hellman-group1-sha1
  58. debug2: kex_parse_kexinit: ssh-rsa,ssh-dss,ecdsa-sha2-nistp256
  59. debug2: kex_parse_kexinit: aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour12 8,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,rij ndael-cbc@lysator.liu.se
  60. debug2: kex_parse_kexinit: aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour12 8,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,rij ndael-cbc@lysator.liu.se
  61. debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,umac-64@openssh.com,hmac-sha2-256, hmac-sha2-256-96,hmac-sha2-512,hmac-sha2-512-96,hmac-ripemd160,hmac-ripemd160@op enssh.com,hmac-sha1-96,hmac-md5-96
  62. debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,umac-64@openssh.com,hmac-sha2-256, hmac-sha2-256-96,hmac-sha2-512,hmac-sha2-512-96,hmac-ripemd160,hmac-ripemd160@op enssh.com,hmac-sha1-96,hmac-md5-96
  63. debug2: kex_parse_kexinit: none,zlib@openssh.com
  64. debug2: kex_parse_kexinit: none,zlib@openssh.com
  65. debug2: kex_parse_kexinit:
  66. debug2: kex_parse_kexinit:
  67. debug2: kex_parse_kexinit: first_kex_follows 0
  68. debug2: kex_parse_kexinit: reserved 0
  69. debug2: mac_setup: found hmac-md5
  70. debug1: kex: server->client aes128-ctr hmac-md5 none
  71. debug2: mac_setup: found hmac-md5
  72. debug1: kex: client->server aes128-ctr hmac-md5 none
  73. debug1: sending SSH2_MSG_KEX_ECDH_INIT
  74. debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
  75. debug1: Server host key: ECDSA 50:ed:ea:a5:d5:7a:5a:f0:ab:09:d6:e4:e4:e9:7c:d3
  76. debug3: load_hostkeys: loading entries for host "localhost" from file "/root/.ss h/known_hosts"
  77. debug3: load_hostkeys: found key type ECDSA in file /root/.ssh/known_hosts:1
  78. debug3: load_hostkeys: loaded 1 keys
  79. debug1: Host 'localhost' is known and matches the ECDSA host key.
  80. debug1: Found key in /root/.ssh/known_hosts:1
  81. debug1: ssh_ecdsa_verify: signature correct
  82. debug2: kex_derive_keys
  83. debug2: set_newkeys: mode 1
  84. debug1: SSH2_MSG_NEWKEYS sent
  85. debug1: expecting SSH2_MSG_NEWKEYS
  86. debug2: set_newkeys: mode 0
  87. debug1: SSH2_MSG_NEWKEYS received
  88. debug1: Roaming not allowed by server
  89. debug1: SSH2_MSG_SERVICE_REQUEST sent
  90. debug2: service_accept: ssh-userauth
  91. debug1: SSH2_MSG_SERVICE_ACCEPT received
  92. debug2: key: /root/.ssh/id_rsa ((nil))
  93. debug2: key: /root/.ssh/id_dsa ((nil))
  94. debug2: key: /root/.ssh/id_ecdsa ((nil))
  95. debug1: Authentications that can continue: publickey,password
  96. debug3: start over, passed a different list publickey,password
  97. debug3: preferred gssapi-keyex,gssapi-with-mic,publickey,keyboard-interactive,pa ssword
  98. debug3: authmethod_lookup publickey
  99. debug3: remaining preferred: keyboard-interactive,password
  100. debug3: authmethod_is_enabled publickey
  101. debug1: Next authentication method: publickey
  102. debug1: Trying private key: /root/.ssh/id_rsa
  103. debug3: no such identity: /root/.ssh/id_rsa
  104. debug1: Trying private key: /root/.ssh/id_dsa
  105. debug3: no such identity: /root/.ssh/id_dsa
  106. debug1: Trying private key: /root/.ssh/id_ecdsa
  107. debug3: no such identity: /root/.ssh/id_ecdsa
  108. debug2: we did not send a packet, disable method
  109. debug3: authmethod_lookup password
  110. debug3: remaining preferred: ,password
  111. debug3: authmethod_is_enabled password
  112. debug1: Next authentication method: password
  113. nasaccess@localhost's password:
  114. debug3: packet_send2: adding 48 (len 63 padlen 17 extra_pad 64)
  115. debug2: we sent a password packet, wait for reply
  116. debug1: Authentication succeeded (password).
  117. Authenticated to localhost ([127.0.0.1]:22).
  118. debug2: fd 4 setting O_NONBLOCK
  119. debug3: fd 5 is O_NONBLOCK
  120. debug1: channel 0: new [client-session]
  121. debug3: ssh_session2_open: channel_new: 0
  122. debug2: channel 0: send open
  123. debug1: Requesting no-more-sessions@openssh.com
  124. debug1: Entering interactive session.
  125. Write failed: Broken pipe
  126. Couldn't read packet: Connection reset by peer
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement