Ubuntu sshd设置 新装Ubuntu无法ssh 安装sshd并启动 $ sudo apt update $ sudo apt install openssh-server $ sudo systemctl start sshd root无法ssh连接Ubuntu 修改/etc/ssh/sshd_config文件,允许root连接 #PermitRootLogin prohibit-password 修改为 PermitRootLogin yes 参考资料 https://ubuntu.com/server/docs/service-openssh