SFTP

The latest version OpenSSH (5.9p1) supports SFTP chroot

1> download OpenSHH & OpenSSL (which might need zlib -- yum install zlib-devel)
2> run the following commands: ./configure, make & make install
3> Modify the /etc/init.d/sshd to point to new SSH location
4> restart the sshd to make sure it works
5> modify sshd_config

Match Group sftponly
ChrootDirectory /home/%u
ForceCommand internal-sftp
AllowTcpForwarding no

OR
Match user USRT_ID

useradd -s /bin/flase USER_NAME
chown -R UID:GID /home/User_name
chown root:root /home/User_name
chmod 755 /home/User_name

Comments

Popular posts from this blog

VIOS TIPs

Configure Solaris 10 LDOM on Solaris 11.4

Change P410i from HBA mode to Raid mdoe