是SSH ControlMaster与Cygwin在Windows上实际上可能吗? [英] Is SSH ControlMaster with Cygwin on Windows actually possible?

查看:398
本文介绍了是SSH ControlMaster与Cygwin在Windows上实际上可能吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有谁能够在Windows上使用控制主机与cygwin创建多个会话,而无需重复登录?我需要自动化一系列的SSH步骤,但不能要求用户每次输入所需的令牌化密码。

Has anyone been able to use control master with cygwin on Windows to create multiple sessions without having to log on repeatedly? I need to automate a succession of SSH steps but cannot ask the user to enter the required tokenized password eachtime.

我已经配置了我的cygwin ssh_config与以下:

I have configured my cygwin ssh_config with following:

Host *
    ControlMaster auto
    ControlPath /tmp/%r@%h:%p

当我开始第二个连接时,我收到以下错误信息,提示再次输入密码:

And I get the following error message on the master when I start a second connection which prompts for the password again:

mm_receive_fd: no message header
process_mux_new_session: failed to receive fd 0 from slave

我看过其他人遇到这个问题,但我似乎找不到任何解决方案。

I've seen others with this problem but I can't seem to find any solution for this.

有人做了这项工作吗?

推荐答案

很多搜索结果显然是不可能的。这是我发现处理这个问题的唯一链接:

Apparently the conclusion after much searching is that currently it is NOT possible. These were the only links I found that dealt with this:

为Windows上的脚本模仿共享ssh会话?
...但没有实现OpenSSH for Windows(文件描述符over unix socket不能在Cygwin中工作)。

Imitating a shared ssh session for scripts on Windows? "...but there is no implementation of OpenSSH for Windows which does this (file descriptors over unix sockets do not work in Cygwin)." and

http://gcc.gnu.org/ wiki / SSH_connection_caching
不幸的是,如果您在Cygwin上使用OpenSSH,您将无法利用连接缓存,因为Cygwin当前不支持通过unix-domain套接字传递文件描述符。

http://gcc.gnu.org/wiki/SSH_connection_caching "Unfortunately if you are using OpenSSH on Cygwin you will not be able to take advantage of connection caching because Cygwin does not currently support file descriptor passing via unix-domain sockets."

这篇关于是SSH ControlMaster与Cygwin在Windows上实际上可能吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆