Ubuntu ssh 配置
介绍了ssh相关配置
·
1、安装ssh
apt install passwd openssl openssh-server openssh-client -y
2、设置采用密码登录
vi /etc/ssh/sshd_config
#添加下面两行
PermitRootLogin yes
PasswordAuthentication yes
上面注意的一点是sshd_config 而不是ssh_config,一定不能混淆了。
添加后设置密码
passwd root
后面登录的密码就是现在设置的密码
3、重启sshd
service ssh restart
4、然后就可以在远程登录了
ssh root@ip
更多推荐
已为社区贡献4条内容
所有评论(0)