Advertisement
Guest User

Untitled

a guest
Feb 20th, 2011
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.57 KB | None | 0 0
  1. sshd_config:
  2. Subsystem sftp internal-sftp
  3.  
  4. Match group clients
  5. ChrootDirectory /var/chroot-home/%u
  6. X11Forwarding no
  7. AllowTcpForwarding no
  8. ForceCommand internal-sftp
  9.  
  10.  
  11. /etc/passwd:
  12. david:x:1000:1001::/var/chroot-home/david:/bin/sh
  13.  
  14.  
  15. Directory Structure
  16.  
  17. ls -al /var/chroot-home/david/
  18. total 4
  19. drwxr-xr-x 5 root clients 58 2011-02-20 23:09 .
  20. drwxr-xr-x 3 root root 24 2011-02-17 09:32 ..
  21. drwxr-xr-x 2 david clients 33 2011-02-18 22:34 .cache
  22. drwxr-xr-x 3 david clients 16 2011-02-20 23:09 files
  23. -rwxr-xr-x 1 david clients 142 2011-02-17 09:31 .htaccess
  24. drwxr-xr-x 2 david clients 28 2011-02-18 23:21 .ssh
  25.  
  26.  
  27.  
  28. ssh:
  29.  
  30. ebug1: ssh_rsa_verify: signature correct
  31. debug1: SSH2_MSG_NEWKEYS sent
  32. debug1: expecting SSH2_MSG_NEWKEYS
  33. debug1: SSH2_MSG_NEWKEYS received
  34. debug1: Roaming not allowed by server
  35. debug1: SSH2_MSG_SERVICE_REQUEST sent
  36. debug1: SSH2_MSG_SERVICE_ACCEPT received
  37. debug1: Authentications that can continue: publickey,password
  38. debug1: Next authentication method: publickey
  39. debug1: Offering public key: /home/david/.ssh/keys/id_rsa
  40. debug1: Server accepts key: pkalg ssh-rsa blen 277
  41. debug1: read PEM private key done: type RSA
  42. debug1: Authentication succeeded (publickey).
  43. debug1: channel 0: new [client-session]
  44. debug1: Requesting no-more-sessions@openssh.com
  45. debug1: Entering interactive session.
  46. debug1: Requesting X11 forwarding with authentication spoofing.
  47. debug1: Sending environment.
  48. debug1: Sending env LANG = en_US.UTF-8
  49. debug1: Sending env LC_ALL = en_US.UTF-8
  50. debug1: Sending env LC_CTYPE = C
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement