您的位置: 首页 > IT文章 > ssh简单配置 ssh简单配置 分类: IT文章 • 2023-11-30 12:51:01 安装SSH sudo apt-get install openssh-server -y 为root用户创建密码 sudo passwd root 切换为root用户,并且编辑sshd_config文件,修改以下三项。 UsePAM no PasswordAuthentication yesPermitRootLogin yes su root vim /etc/ssh/sshd_config 重启ssh服务 /etc/init.d/ssh restart