安裝

apt-get install openssh-server

修改ssh設定

vim /etc/ssh/sshd_config
#PermitRootLogin no (拒絕用root登入)

重開ssh

/etc/init.d/ssh  restart
Categories: Linux