ssh opc@你的ip地址
sudo -i
vi .ssh/authorized_keys
vi /etc/ssh/sshd_config
PermitRootLogin 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服务
service sshd restart
启动sshd服务:
3. 重启 sshd 服务:
4. 设置服务开启自启:
Oracle Linux确实不太好用,docker安装都很费劲
欢迎光临 侠外游戏论坛 (https://bbs.xiawai.com/) | Powered by Discuz! X3 |