问题1.ssh: connect to host 192.168.XX.XX port 22: Connection refused
ps aux|grep ssh 检查ssh与sshd是否启动
ubuntu默认没有安装openssh-server
apt-get install openssh-server
启动sshd /usr/bin/sshd 或/etc/init.d/ssd start
问题2.X11 connection rejected because of wrong authentication.
vim /etc/ssh/ssh_config
ForwardAgent yesForwardX11 yes
ForwardX11Trusted yes
sudo reboot