open a terminal via ssh root
ssh root@xx.xx.xx.xx
adduser username
usermod -aG sudo username
vim /etc/ssh/sshd_config
change sshd_config as follow:
Port 443
PermitRootLogin no
StrictModes yes
PasswordAuthentication yes
PermitEmptyPasswords no
ChallengeResponseAuthentication no
UsePAM yes
X11Forwarding yes
AllowUsers username@xx.xx.xx.xx lucyliu@xx.xx.xx.xx
/etc/init.d/ssh restart
- connect with new user
ssh username@xx.xx.xx.xx -p 443
install MATE
- sudo apt update && sudo apt upgrade -y
sudo apt install ubuntu-mate-desktop
- install x2goserver
- sudo add-apt-repository ppa:x2go/stable
- sudo apt-get update
- sudo apt-get install x2goserver x2goserver-xsession
Aucun commentaire:
Enregistrer un commentaire