通过HTTP代理访问SSH帐户 [英] Getting to an SSH account over a HTTP proxy

查看:93
本文介绍了通过HTTP代理访问SSH帐户的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用Python通过HTTP代理连接到SSH帐户,以便
自动执行某些操作。我以为paramiko能够做到这一点,

但它不能(似乎)。


是否还有其他一些Python模块可以做我所做的事情想要吗?


-

mvh Bj?rn

I want to use Python to connect to a SSH account over a HTTP proxy to
automate some operations. I thought paramiko would be able to do that,
but it can not (it seems).

Is there some other Python module that can do what I want?

--
mvh Bj?rn

推荐答案

BJ Lindqvist写道:
BJ??rn Lindqvist wrote:

我想使用Python通过HTTP代理连接到SSH帐户,以便
自动执行某些操作。我以为paramiko能够做到这一点,

但它不能(似乎)。


是否还有其他一些Python模块可以做我所做的事情想?
I want to use Python to connect to a SSH account over a HTTP proxy to
automate some operations. I thought paramiko would be able to do that,
but it can not (it seems).

Is there some other Python module that can do what I want?



有什么可以做你想要的吗?上次我检查没有

这样的东西,比如SSH-over-HTTP。你确定可以吗?


Diez

Is there anything that can do what you want? Last time I checked there is no
such thing as SSH-over-HTTP. Are you sure that is possible?

Diez


Diez B. Roggisch写道:
Diez B. Roggisch wrote:

BJ ?? Lindqvist写道:
BJ??rn Lindqvist wrote:

>我想使用Python通过HTTP代理连接到SSH帐户
自动执行某些操作。我认为paramiko能够做到这一点,
但它不能(似乎)。

是否有其他Python模块可以做我想要的?
>I want to use Python to connect to a SSH account over a HTTP proxy to
automate some operations. I thought paramiko would be able to do that,
but it can not (it seems).

Is there some other Python module that can do what I want?



有什么可以做你想要的吗?上次我检查没有

这样的东西,比如SSH-over-HTTP。你确定可以吗?


Is there anything that can do what you want? Last time I checked there is no
such thing as SSH-over-HTTP. Are you sure that is possible?



他指的是HTTP CONNECT方法,它可以隧穿任意的

TCP连接,而不仅仅是HTTP。 IETF的草案名为

通过Web代理服务器隧道化基于TCP的协议。


AFAIK,没有支持它的Python模块。协议

本身就是相当简单的,因此为客户端编写自己的包装器或代理不应该太难。如果你必须首先使用代理进行身份验证,事情就会变得更加复杂。

He''s referring to the HTTP CONNECT method, which can tunnel arbitrary
TCP connections, not just HTTP. The IETF draft for this is titled
"Tunneling TCP based protocols through Web proxy servers".

AFAIK, there are no Python modules which support that. The protocol
itself is fairly simply though, so it shouldn''t be too hard to write
your own wrapper or proxy for the client side. Things get a little more
complicated if you have to authenticate with the proxy first.


2007年1月22日星期一14 :40:49 +0100,Diez B. Roggisch< de *** @ nospam.web.dewrote:
On Mon, 22 Jan 2007 14:40:49 +0100, Diez B. Roggisch <de***@nospam.web.dewrote:

BJ?Lindqvist写道:
BJ?rn Lindqvist wrote:

>我想使用Python通过HTTP代理连接到SSH帐户以自动执行某些操作。我认为paramiko能够做到这一点,
但它不能(似乎)。

是否有其他Python模块可以做我想要的?
>I want to use Python to connect to a SSH account over a HTTP proxy to
automate some operations. I thought paramiko would be able to do that,
but it can not (it seems).

Is there some other Python module that can do what I want?



有什么可以做你想要的吗?上次我检查没有

这样的东西,比如SSH-over-HTTP。你确定可以吗?


Is there anything that can do what you want? Last time I checked there is no
such thing as SSH-over-HTTP. Are you sure that is possible?



我很确定有。或至少TCP-over-HTTP或IP-over-HTTP。我的一个b $ b b熟人用它来通过公司防火墙回家。我想b $ b想想 - 我不想知道细节。


如果你以与ssh隧道相同的方式实现,那么应用程序就不会'$

需要知道任何事情 - 你只需要与localhost上的TCP端口通话。

对所有参与者都有好处。


/ Jorgen


-

// Jorgen Grahn< grahn @ Ph''nglui mglw''nafh Cthulhu

\ X / snipabacken.dyndns.org R''lyeh wgah''nagl fhtagn!

I am pretty sure there is. Or at least TCP-over-HTTP, or IP-over-HTTP. An
acquaintance of mine used it to tonnel home through a corporate firewall. I
think -- I didn''t want to know the details.

If you implement in the same way as ssh tunnels, the application doesn''t
need to know anything about it -- you just talk to a TCP port on localhost.
Good for everyone involved.

/Jorgen

--
// Jorgen Grahn <grahn@ Ph''nglui mglw''nafh Cthulhu
\X/ snipabacken.dyndns.org R''lyeh wgah''nagl fhtagn!


这篇关于通过HTTP代理访问SSH帐户的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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