添加新用户
sudo adduser XXX
为新用户添加密码
sudo password XXX
配置root权限
sudo vim /etc/sudoers
User privilege specification
root ALL=(ALL:ALL) ALL
swai ALL=(ALL:ALL) ALL
# Members of the admin group may gain root privileges
%admin ALL=(ALL) ALL
# Allow members of group sudo to execute any command
查看ip地址
ifconfig -a

查看是否安装ssh
dpkg -l |grep ssh
安装
sudo apt-get install openssh-server openssh-client
开启ssh服务器
ps -e |grep ssh
远程登陆
ssh xxx@192.168.2.158

本文介绍了如何在Ubuntu系统中创建新用户,设置密码,赋予root权限,检查和安装SSH服务,以及开启SSH服务器进行远程登录的步骤。

4906

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



