Jailing a SFTP user.
In RedHat 4/5 How can i jail/restrict an sftp user to his home directory ?
Can i do this without using rssh ?
You would need to change the settings to jail to the home directory as such:
I have tried this before, and go this message:
#service sshd restart
Stopping sshd: [FAILED]
Starting sshd: /etc/ssh/sshd_config: line 122: Bad configuration option: Match
/etc/ssh/sshd_config: line 126: Bad configuration option: ForceCommand
/etc/ssh/sshd_config: terminating, 2 bad configuration options
**Rh5's latest open-ssh package does not support Match User directive.
Thanks for the reply. :)
Thank You For the help Anomie, it worked... :)
You are awesome !
|All times are GMT -5. The time now is 10:11 AM.|