Ubuntu系统的基础操作--入门

操作系统有很多 本人经常使用的都是centos的操作系统
今天来学习一下ubuntu系统
官网https://ubuntu.com

了解ubuntu系统信息

cat /proc/version
uname -a
lsb_release -a
lscpu

设置使用root用户连接终端

首先ubuntu默认是禁止root账户进行ssh连接终端的

默认创建的时候是ubuntu用户,但是是普通用户的权限
登陆终端之后设置root密码

ubuntu@VM-8-8-ubuntu:~$ sudo passwd root
#输入两次密码

现在只能说你能切换到root用户了 但是现在还不能通过root用户进行登陆
在这里插入图片描述

登陆root用户进行修改sshd_config文件

root@VM-8-8-ubuntu:~# vim /etc/ssh/sshd_config
删除注释 并且如下进行修改
 33 PermitRootLogin yes
 34 StrictModes no
 57 PasswordAuthentication yes
 58 PermitEmptyPasswords yes

系统重启

reboot

即可直接使用root账户进行ssh登陆
在这里插入图片描述

Ubuntu系统操作命令

安装命令apt

在这里插入图片描述
在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/weixin_46152207/article/details/114993375