Using SSHFS To Mount Remote Filesystem
If you need to do a lot of file operations against a remote ssh/sftp server then sshfs might be the perfect tool. sshfs is a FUSE filesystem that you can mount onto a local mount point. Once mounted you can
If you need to do a lot of file operations against a remote ssh/sftp server then sshfs might be the perfect tool. sshfs is a FUSE filesystem that you can mount onto a local mount point. Once mounted you can
Here’s the steps to create chrooted SFTP users. 1. Comment out the following line in /etc/ssh/sshd_config
|
1 |
Subsystem sftp /usr/libexec/openssh/sftp-server |
2. Append the following in /etc/ssh/sshd_config
|
1 2 3 4 5 6 |
Subsystem sftp internal-sftp # SFTP users Match User USERNAME ChrootDirectory /var/www/vhosts/MYDOMAIN.COM ForceCommand internal-sftp |
where USERNAME is the user and ChrootDirectory is the path that the user will be locked
Let’s assume that you have XFS formatted partition hosted on LVM named “/dev/vg1/gfs1” where “vg1” is the “volume group” and “gfs1” is the “logical volume”. You want to add an additional drive named “dev/xvdc” to the partition to increase storage.
The Linux Auditing System and auditd are a great way to monitor who and when changes are made to the files in your website. To install and configure follow these steps: 1. Install auditd and related utilities:
|
1 |
yum install audit |
2. Make
Sometimes with a new user on Ubuntu I find that filename auto-completion is missing in the shell. I found two issues that cause this: 1. Ubuntu sets new users to /bin/sh which is a very limited shell. So first step
Reliable Penguin provides managed web hosting, systems administration, website and server migrations, and expert consulting.
Submit the form—or for immediate service call 866-649-7984.