Tag Info

New answers tagged

0

Alright, after trial and error, it seems here's the answer. adduser someone vi /etc/ssh/sshd_config I am using Froggiz's configuration, so my code looks like this: PasswordAuthentication yes Subsystem sftp internal-sftp -u 0007 -f AUTH -l VERBOSE Match Group someone ChrootDirectory /var/www ForceCommand internal-sftp -u 0007 ...


0

this is how i set my sftp for specific user 1] create a user adduser {USER} 2] edit /etc/ssh/sshd_config PasswordAuthentication yes Subsystem sftp internal-sftp -u 0007 -f AUTH -l VERBOSE Match Group {USER} ChrootDirectory {FOLDER} ForceCommand internal-sftp -u 0007 AllowTcpForwarding no GatewayPorts no X11Forwarding no ...


0

Remounting using --bind for the chroot looks like a workable suggestion. However, IMHO connecting to MySQL using a TCP socket (127.0.0.1) seems cleaner, more secure and less likely to go wrong. The reason I say that is that various sources including http://blog.dispatched.ch/postfix-and-mysql-debian/ and ...


0

I found what was the problem. I had to change the custom home directory for user bob which was /var/www/sites to /var/www/. Then give root:root permissions for www directory and bob:sftponly permissions for sites directory. Now i can login with the chrooted user and write in sites directory but not in the www directory which i guess is the normal way how it ...



Top 50 recent answers are included