CentOS6.4 远程连接Windwos Server服务器

不管现实多么惨不忍睹,都要持之以恒地相信,这只是黎明前短暂的黑暗而已。不要惶恐眼前的难关迈不过去,不要担心此刻的付出没有回报,别再花时间等待天降好运。真诚做人,努力做事!你想要的,岁月都会给你。CentOS6.4 远程连接Windwos Server服务器,希望对大家有帮助,欢迎收藏,转发!站点地址:www.bmabk.com,来源:原文

CentOS6.4 远程连接Windwos Server服务器

[root@Jeffery]# yum install -y rdesktopLoaded plugins: fastestmirror, priorities, refresh-packagekit, securityRepository base is listed more than once in the configurationRepository updates is listed more than once in the configurationRepository extras is listed more than once in the configurationRepository centosplus is listed more than once in the configurationRepository contrib is listed more than once in the configurationLoading mirror speeds from cached hostfile * epel: mirrors.hust.edu.cn * rpmforge: mirror.oscc.org.mySetting up Install ProcessResolving Dependencies–> Running transaction check—> Package rdesktop.x86_64 0:1.6.0-10.el6 will be installed–> Processing Dependency: pcsc-lite for package: rdesktop-1.6.0-10.el6.x86_64–> Processing Dependency: libpcsclite.so.1()(64bit) for package: rdesktop-1.6.0-10.el6.x86_64–> Running transaction check—> Package pcsc-lite.x86_64 0:1.5.2-13.el6_4 will be installed–> Processing Dependency: pcsc-ifd-handler for package: pcsc-lite-1.5.2-13.el6_4.x86_64—> Package pcsc-lite-libs.x86_64 0:1.5.2-13.el6_4 will be installed–> Running transaction check—> Package pcsc-lite-acr38u.x86_64 0:1.7.10-1.el6.rf will be installed–> Finished Dependency Resolution

Dependencies Resolved

========================================================================================================= Package Arch Version Repository Size=========================================================================================================Installing: rdesktop x86_64 1.6.0-10.el6 base 152 kInstalling for dependencies: pcsc-lite x86_64 1.5.2-13.el6_4 updates 130 k pcsc-lite-acr38u x86_64 1.7.10-1.el6.rf rpmforge 57 k pcsc-lite-libs x86_64 1.5.2-13.el6_4 updates 28 k

Transaction Summary=========================================================================================================Install 4 Package(s)

Total download size: 367 kInstalled size: 976 kDownloading Packages:(1/4): pcsc-lite-1.5.2-13.el6_4.x86_64.rpm | 130 kB 00:00 (2/4): pcsc-lite-acr38u-1.7.10-1.el6.rf.x86_64.rpm | 57 kB 00:10 (3/4): pcsc-lite-libs-1.5.2-13.el6_4.x86_64.rpm | 28 kB 00:00 (4/4): rdesktop-1.6.0-10.el6.x86_64.rpm | 152 kB 00:00 ———————————————————————————————————Total 27 kB/s | 367 kB 00:13 Running rpm_check_debugRunning Transaction TestTransaction Test SucceededRunning Transaction Installing : pcsc-lite-libs-1.5.2-13.el6_4.x86_64 1/4 Installing : pcsc-lite-1.5.2-13.el6_4.x86_64 2/4 Installing : pcsc-lite-acr38u-1.7.10-1.el6.rf.x86_64 3/4 Installing : rdesktop-1.6.0-10.el6.x86_64 4/4 Verifying : rdesktop-1.6.0-10.el6.x86_64 1/4 Verifying : pcsc-lite-acr38u-1.7.10-1.el6.rf.x86_64 2/4 Verifying : pcsc-lite-1.5.2-13.el6_4.x86_64 3/4 Verifying : pcsc-lite-libs-1.5.2-13.el6_4.x86_64 4/4

Installed: rdesktop.x86_64 0:1.6.0-10.el6

Dependency Installed: pcsc-lite.x86_64 0:1.5.2-13.el6_4 pcsc-lite-acr38u.x86_64 0:1.7.10-1.el6.rf pcsc-lite-libs.x86_64 0:1.5.2-13.el6_4

Complete![root@Jeffery]# rdesktop -a 16 112.124.XXX.XXX#-a 16的意思是指画面用32-bit 显示Autoselected keyboard map en-usNOT IMPLEMENTED: RDP5 opcode 11NOT IMPLEMENTED: RDP5 opcode 11ERROR: get cursor 0[root@Jeffery yum.repos.d]#

iptables-save > /etc/firewall.conf # 保存规则到一个文件echo ‘#!/bin/sh’ > /etc/network/if-up.d/iptables # 创建一个开机启动项文件echo ‘iptables-restore < /etc/firewall.conf’ >> /etc/network/if-up.d/iptables # 同上,继续添加内容chmod +x /etc/network/if-up.d/iptables # 修改启动项文件的执行属性

如果不满意以上配置的规则,可以使用以下命令来清空全部规则:

iptables -Fiptables -Xiptables -Z

到此,全部结束。

======================分割线========================

2013.08.05后记

rdesktop是linux远程连接windows的利器,就像在windows系统下使用mstsc命令连接windows一样。

在使用过程中的确方便了不少

用法: rdesktop [options] server[:port]

命令参数常用的有:

-u 用户名

-p 密码

-n 客户端主机名(显示windows任务管理器中的连接客户端名)

-g 桌面大小(高*宽)

-f 全屏模式, 从全屏模式切换出来按 Ctrl+Alt+Enter

-a 连接颜色深度(最高到16位),一般选16才会显示真彩色

-0 数字0 表示连接上windows 控制台,等效mstsc /console命令

例子:

1、在全屏模式下用真彩色、客户端名为bluebird8、用户名bluebird8连接192.168.0.100 控制台

$rdesktop -f -a 16 -n bluebird8 -u bluebird8 -0 192.168.0.100

2、以800*600窗口大小、真彩色、用户名bluebird8、打开远程端口为16453的192.168.0.101 控制台

$rdesktop -g 800*600 -a 16 -u bluebird8 -0 192.168.0.101:16453

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 举报,一经查实,本站将立刻删除。

文章由极客之音整理,本文链接:https://www.bmabk.com/index.php/post/160556.html

(0)
飞熊的头像飞熊bm

相关推荐

发表回复

登录后才能评论
极客之音——专业性很强的中文编程技术网站,欢迎收藏到浏览器,订阅我们!