0%
设置root账户密码
1 2 3 4 5
| # 修改root密码 sudo passwd root
# 切换到root账户 su root
|
查看ip
1 2 3 4 5
| # 安装网络工具 apt install net-tools
# 查看ip ifconfig
|
允许远程
1 2 3 4 5 6
| # 将 PermitRootLogin的值 设置为 yes vim /etc/ssh/sshd_config PermitRootLogin yes
# 重启ssh systemctl restart ssh
|