限制User使用sftp在家目錄,並加入log file
一、環境說明:
Red Hat Enterprise Linux Server release 6.7 (Santiago)
# sshd -v
sshd: illegal option -- v
OpenSSH_5.3p1, OpenSSL 1.0.1e-fips 11 Feb 2013
rsyslog-5.8.10
二、設置ssh 設定
1.針對user設置:
# vi /etc/ssh/sshd_config
Subsystem sftp internal-sftp -f AUTHPRIV -l VERBOSE -u 0002 -f LOCAL6
Match user schuang
...
Read More