Debugzhang 2011-11-19
sudo rm /etc/ssh/ssh_host_dsa_key*
sudo rm /etc/ssh/ssh_host_rsa_key*
sudo apt-get install openssh-server openssh-client
安装完成后可以使用ssh localhost命令来测试是否能ssh登录。如果总是报Connection reset by Peer的错误,则需要删除所有/etc/ssh/ssh_host_dsa_key* 和 /etc/ssh/ssh_host_rsa_key* 的证书,重新安装openssh-server后再尝试。
sudo add-apt-repository ppa:freenx-team sudo apt-get update sudo apt-get install freenx
wget https://bugs.launchpad.net/freenx-server/+bug/576359/+attachment/1378450/+files/nxsetup.tar.gz tar -xvf nxsetup.tar.gz
sudo cp nxsetup /usr/lib/nx/nxsetup
sudo /usr/lib/nx/nxsetup --install
$ which nxserver --> /usr/bin/nxserver
$ sudo /usr/bin/nxserver --status
NX> 100 NXSERVER - Version 3.2.0-74-SVN OS (GPL, using backend: 3.5.0)
NX> 110 NX Server is running
NX> 999 Bye
sudo nxserver --useradd/adduser <User Name>
sudo nxserver --userlist/listuser
sudo rm /var/lib/nxserver/home/.ssh/server.id_dsa.pub.key
sudo rm /var/lib/nxserver/home/.ssh/client.id_dsa.key
sudo rm /var/lib/nxserver/home/.ssh/authorized_keys2
sudo /usr/lib/nx/nxkeygen
检查上述几个文件是否最新生成的。
sudo /usr/bin/nxserver --restart
================================================
从http://www.nomachine.com/select-package-client.php下载最新的NX Client安装程序,执行:
sudo dpkg -i nxclient_3.5.0-7_i386.deb
/usr/NX/bin/nxclient &
# less /var/lib/nxserver/home/.ssh/client.id_dsa.keys
2. 如果登录过程中出现“验证失败”等错误,可以尝试在/etc/ssh/sshd_config中添加如下内容: