2016年4月3日 星期日

Ubuntu安裝SSH Server

1. 安裝ssh和openssh-server套件
$ apt-get install ssh
$ apt-get install openssh-server
2. 取消以root權限登入
$ vi /etc/ssh/sshd_config

修改PermitRootLogin參數為no
PermitRootLogin no
3. 啟用ssh服務
$ /etc/init.d/ssh restart

沒有留言:

張貼留言