Giter VIP home page Giter VIP logo

Comments (9)

apexliu avatar apexliu commented on June 15, 2024 1

最新版原版FreeRDP客户端直连远程主机,做了一下测试:
本机->远端,复制文本:成功
本机->远端,复制文件:成功
本机->远端,复制目录:成功
远端->本机,复制文本:成功
远端->本机,复制文件:失败,复制出来的文件为0字节
远端->本机,复制目录:失败,目录和文件均复制了,但文件内容均为0字节

from teleport.

apexliu avatar apexliu commented on June 15, 2024

目前RDP客户端使用的是大约一年前的FreeRDP的代码,根据测试,最新的FreeRDP部分解决了复制粘贴的问题。回头将RDP客户端代码升级到最新的FreeRDP代码上去(因为在原来的FreeRDP的基础上做了一些修改,因此并不能单纯升级FreeRDP代码,需要修改)。

from teleport.

sherppard avatar sherppard commented on June 15, 2024

谢谢作者的详细回答!

文本复制,有时可以,有时不行。
打开映射本地磁盘,加载速度有点慢。

对freerdp我有一个建议:
我最近下载了XRDP + NeutrinoRDP试用,它也是根据freerdp改进的。
它用户体验会更好,操作的响应速度很快,文本、文件、目录的相互复制都没有问题(已测试)

from teleport.

apexliu avatar apexliu commented on June 15, 2024

有没有试过远程主机是Windows的?看你的说法使用XRDP,是用在远程主机是Linux的吧?

from teleport.

sherppard avatar sherppard commented on June 15, 2024

可能我讲的有点简单,具体环境如下
我的XRDP + NeutrinoRDP环境:
▼----------------------------------------------------------------------------------> ▼
mstsc.exe ----------------------- XRDP + NeutrinoRDP ----------------- windows server 2008
windows 7 旗舰版 ---------------- Debian 7.5 wheezy -----------------or windows server 2012
A ------------------------------------------ B ----------------------------------------- C

我在A用mstsc登录B(不需要输入账号密码), 然后出现下面的界面
image
表单ip字段填写服务器,输入账号密码,就可以登录了。所有的磁盘映射配置与剪切板配置在mstsc完成。

from teleport.

apexliu avatar apexliu commented on June 15, 2024

麻烦你测试一下,这种方式能否在mstsc这边预设密码,而不是连接后显示一个对话框让你输入用户名和密码。如果能预设密码,那么可以考虑用基于xrdp来修改做转发服务,如果不行,则没法使用在teleport这种场景,因为我们希望由堡垒机来管理远程主机的密码,密码不能告诉给运维人员。

from teleport.

sherppard avatar sherppard commented on June 15, 2024

在debian xrdp的配置

[file-server]
name=neutrinordp-file_server
lib=libxrdpneutrinordp.so
ip=1.1.1.1
port=ask3389
username=administrator
password=xxxxxx

[mypc]
name=neutrinordp-mypc
lib=libxrdpneutrinordp.so
ip=2.2.2.2
port=ask3389
username=administrator
password=xxxxxxx

[neutrinordp-dc]
name=neutrinordp-dc
lib=libxrdpneutrinordp.so
ip=3.3.3.3
port=ask3389
username=administrator
password=xxxxxxx

它的配置文件xrdp.ini ,像上面那样写可以预设账号密码,登录之后如下图:
image
只要选好服务器就点OK就可以登录了。
问题是mstsc去连接的时候需要传递参数过去,neutrinordp要能接收参数,才可以完成自动登录。

from teleport.

apexliu avatar apexliu commented on June 15, 2024

多谢你的测试,照你的结果来看,基于xrdp做转发服务是可以做到理想中的状态:一键即连,无需记住密码,不过改造xrdp的工作量也不会小。当然,对比我现在直接看rdp协议硬生生写,会轻松很多。 :)

from teleport.

sherppard avatar sherppard commented on June 15, 2024

我也是尽一下微薄之力,对C的编程我是不太懂,所以也帮不上忙。但是python代码的bug,我还是可以帮你处理一些。希望teleport堡垒机越做越完善。:smile:

from teleport.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.