Ubuntu安装ssh服务并开启root用户远程登录
程序员文章站
2022-06-05 17:23:09
...
先安装openssh-server服务,配置开启root登录,给服务器root设置下密码,使用ssh [email protected]远程登录即可,windows下也可使用putty,xshell进行ssh登录
sudo apt install openssh-server #安装 ssh-server 服务
ps -ef|grep ssh #查看服务是否正常启动
sudo service sshd start #启动 ssh 服务
vim /etc/sshd/sshd_config #在 sshd 文件中添加 PermitRootLogin yes
service sshd restart #重启ssh服务
sudo passwd root #设置服务器 root 密码
ssh [email protected] #使用 root 用户进行远程登录
上一篇: Linux设备驱动-platform虚拟总线dya03
下一篇: 面向过程和面向对象
推荐阅读
-
Ubuntu 18.1远程登录服务器--ssh的安装
-
ubuntu16.04安装ssh服务,并实现远程访问
-
云服务器Ubuntu_Server_16.04.1安装MySQL并开启远程连接的方法
-
ubuntu安装MySQL并解决远程及其他用户登录问题 修改密码问题
-
云服务器Ubuntu_Server_16.04.1安装MySQL并开启远程连接
-
linux SSH服务允许root用户远程登录
-
ssh以root用户登录ubuntu服务器
-
【一次成功】Ubuntu设置允许Root用户远程SSH连接并登录
-
Ubuntu安装SSH并启用root用户远程登录
-
ubuntu开启SSH服务,并允许ROOT权限远程登录