
Linux ez 2012-06-04
安裝 openssh-server :
apt-get install openssh-server
檢查 ssh 是否已安裝完成:
ps aux | grep ssh
設定 ssh_config
vi /etc/ssh/sshd_config
將 PermitRootLogin Yes 改成 PermitRootLogin no ,讓Root無法登入,增加安全性。
尋找 # What ports, IPs and protocols we listen for 下方有設定 Port 22,可以自行改變Port。
重新啟動 ssh
/etc/init.d/ssh restart /etc/init.d/ssh stop /etc/init.d/ssh start
標籤: Linux