甲骨文启用ssh登陆

#切换至root模式,并更改root的密码
$ sudo -i
passwd
#启用SSH
vim /etc/ssh/sshd_config
#更改如下
PermitRootLogin yes
PasswordAuthentication yes
#或使用如下命令
sudo sed -i 's/^#\?PermitRootLogin.*/PermitRootLogin yes/g' /etc/ssh/sshd_config;
sudo sed -i 's/^#\?PasswordAuthentication.*/PasswordAuthentication yes/g' /etc/ssh/sshd_config;
#重启sshd服务
sudo service sshd restart
Categories:

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注