一、更新
sudo apt update && sudo apt upgrade
二、安装openssh-server
sudo apt install openssh-server
三、修改sshd_config
sudo vi /etc/ssh/sshd_config
去掉PermitRootLogin prohibit-password的注释并更改为:PermitRootLogin yes
四、重启ssh服务
service ssh restart
Ubuntu配置ssh连接
最新推荐文章于 2024-07-25 18:44:22 发布