如果你只是想登陆别的机器的SSH只需要安装openssh-client(ubuntu有默认安装,如果没有则sudoapt-get install openssh-client),如果要使本机开放SSH服务就需要安装openssh-server。
-
安装openssh-server
sudo apt-get install openssh-server -
修改 root 密码
sudo passwd root -
修改配置文件
sudo vi /etc/ssh/sshd_config找到下面相关配置:
# Authentication: LoginGraceTime 120 PermitRootLogin prohibit-password StrictModes yes更改为:
# Authentication: LoginGraceTime 120 #PermitRootLogin prohibit-password PermitRootLogin yes StrictModes yes -
重启ssh
sudo service ssh restart
本文详细介绍如何在Ubuntu系统中安装并配置SSH服务,包括安装openssh-server,修改root密码,调整sshd_config配置允许root登录,及重启SSH服务的步骤。
8520

被折叠的 条评论
为什么被折叠?



