LINUX下连接远程WINOWS主机(VNC or WIN RDP)的工具

An open source client for Windows Remote Desktop Services
LINUX下的WINDOWS远程桌面连接工具rdesktop
今天用gnome 下的vinagre 连接VNC没成功,一连就“connection closed”.于是找到了rdesktop,直接连WIN的远程桌面:

1
2
3
4
5
6
7
sudo pacman -S rdesktop
rdesktop win-host-ip
#rdesktop -f -r disk:home=/home/admin win-host-ip
#Redirects  a  path  to  the  share \\tsclient\<sharename> on the
#             server (requires Windows XP or newer). The share name is limited
#            to 8 characters.
#-f 全屏模式 (ctrl+alt+enter 显窗口出来) -r disk 重定向本地磁盘设置到远端

果断连接成功了! :mrgreen:

bvnc -> bssh 连接不成功。
还发现个连VNC的: tightvnc JAVA VncViewer :

1
2
3
4
5
6
7
8
9
sudo pacman -S vncviewer-jar

#文件位置
/usr/share/vnc/classes/VncViewer.class
#运行
java -classpath /usr/share/vnc/classes VncViewer
#用法
 java VncViewer HOST vnchost PORT 5900
#文档: http://www.tightvnc.com/doc/java/README.txt

不过我用它连RealVNC服务器连不上,报如下错误:

Connected to server
RFB server supports protocol version 4.0
Using RFB protocol version 3.8
Error: Server did not offer supported security type
java.lang.Exception: Server did not offer supported security type
at RfbProto.selectSecurityType(RfbProto.java:383)
at RfbProto.negotiateSecurity(RfbProto.java:326)
at VncViewer.connectAndAuthenticate(VncViewer.java:336)
at VncViewer.run(VncViewer.java:158)
at java.lang.Thread.run(Thread.java:662)
RFB socket closed

可见RealVNC server enterprise 用的RFB 4.0 版的协议,而此连接客户端用的是3.8的,肯定不能连接成功了。。。
于是去 http://www.realvnc.com/cgi-bin/download.cgi 下载 VNC Enterprise Edition Viewer for Linux (x86) ,运行之,OK,连接成功!

更多
One Response Post a comment

Leave a Reply

Note: You may use basic HTML in your comments. Your email address will not be published.

Subscribe to this comment feed via RSS