Linux

設定 Linux (Ubuntu) SSH

# apt-get install ssh

# apt-get install openssh-server

設定 ssh config

# vim /etc/ssh/sshd_config

Port 22
PasswordAuthentication yes
PermitRootLogin yes # 是否開放 root 登入

重啟服務

/etc/init.d/ssh restart

comments powered by Disqus