ssh-keygen
ssh-copy-id -i ~/.ssh/id_rsa.pub root@192.168.235.22
上面ssh-copy-id将数据写入到服务器的 ~/.ssh/authorized_keys 里面, 当然也可以手动拷贝.
客户端:cat ~/.ssh/id_rsa.pub
复制
服务端:vim ~/.ssh/authorized_keys
粘贴
- Xserver ref
sudo apt-get update
sudo apt-get install xorg
sudo apt-get install xfce4
sudo apt-get install xrdp
sudo sed -i ‘s/port=3389/port=3390/g’ /etc/xrdp/xrdp.ini
sudo echo xfce4-session >~/.xsession
sudo service xrdp restart
网友评论