添加新用户
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