Advertisement
Guest User

Untitled

a guest
May 5th, 2017
579
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1. # First attempt, right after setting up sftp and changing the home dir to being owned by the user:
  2. seismicmike@seismicmike-laptop:~$ ssh testuser@10.0.0.2
  3. testuser@10.0.0.2's password:
  4. Connection to 10.0.0.2 closed by remote host.
  5. Connection to 10.0.0.2 closed.
  6.  
  7. # Here's the /var/log/secure for that connection attempt:
  8. Feb 10 08:36:00 localhost sshd[1183]: pam_unix(sshd:session): session opened for user testuser by (uid=0)
  9. Feb 10 08:36:00 localhost sshd[1185]: fatal: bad ownership or modes for chroot directory "/home/testuser"
  10. Feb 10 08:36:00 localhost sshd[1183]: pam_unix(sshd:session): session closed for user testuser
  11.  
  12. # so I change the ownership back to root and tryagain:
  13. seismicmike@seismicmike-laptop:~$ !!
  14. ssh testuser@10.0.0.2
  15. testuser@10.0.0.2's password:
  16.  
  17. # after a very long wait:
  18. Connection to 10.0.0.2 closed.
  19. seismicmike@seismicmike-laptop:~$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement