2016/02/21

Published 2月 21, 2016 by

限制User使用sftp在家目錄,並加入log file

限制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
Published 2月 21, 2016 by

Linux online IOscan - Fiber LUN Volumn Scan

#for i in /sys/class/fc_host/host*; do (cd $i; echo -e "$(echo $i)\t$(cat port_name)\t$(cat port_state)\t$(cat speed)"); done /sys/class/fc_host/host3        0x5001438021e1c508      Online  8 Gbit /sys/class/fc_host/host4        0x5001438021e1c50a      Linkdown       ...
Read More