CentOS和Window互相远程桌面方法

来源:互联网 发布:新手摄影后期制作软件 编辑:程序博客网 时间:2024/06/05 16:05
Windows远程CentOS桌面
1.VNC


服务器配置
1) 安装vncserver
[plain] view plain copy
yum install -y vnc-server  
2) 修改配置
[plain] view plain copy
vi /etc/sysconfig/vncservers  
最后两行去#,并分别设置如下
Line1: "1:username"
Line2: "... 1024*768 ..."
3) 设置密码
[plain] view plain copy
vncserver  
4) 修改防火墙
[plain] view plain copy
vi /etc/sysconfig/iptables  
添加-A INPUT -m state --state NEW -m tcp -p tcp -dport 5901 -j ACCEPT
5) 重启防火墙服务
[plain] view plain copy
service iptables restart  
6) 重启vnc服务
[plain] view plain copy
service vncserver restart   
7) ping [客户端ip]
验证连通性


客户端配置
1) 打开vnc客户端,输入ip:5901
2) 输入密码


Linux远程Windows桌面
1.rdesktop


客户端配置
1) 安装rdesktop
[plain] view plain copy
yum install -y rdesktop  
2) 使用rdesktop命令连接到win桌面
[plain] view plain copy
rdesktop -a 16 x.x.x.x:3389 -u username -p password -f  


服务器配置
1) 开启远程访问
2) 取消防火墙拦截
原创粉丝点击