| title | BCAC SFTP Setup |
|---|---|
| description | |
| published | true |
| date | 2021-04-22 20:18:02 UTC |
| tags |
There is an SFTP user on bcac.berea.edu that can edit pawtucket files, and only pawtucket files. sftp [email protected]. The art department, Brian Ramsay, and Scott Heggen have the password.
The sftp user cannot log in via SSH, only sftp. Their home directory is /home/sftp. The pawtucket directory is mounted inside. It's possible the mount will need to be recreated after restart - not sure about this.
- Create an SFTP user:
$ groupadd sftp_users
$ useradd -g sftp_users -G www-data -d -m -s /sbin/nologin sftp
$ passwd sftp
- Create a pawtucket directory they can edit:
mount --bind /var/www/html/art-archives-1.7.8/pawtucket pawtucket - Add to
/etc/ssh/sshd_config:
Match Group sftp_users
ChrootDirectory /home/sftp/
ForceCommand internal-sftp
AllowTcpForwarding no
X11Forwarding no