1

Is it possible to open a non-blocking ssh tunnel from a python app on the heroku cedar stack? I've tried to do this via paramiko and also asyncproc with no success.

On my development box, the tunnel looks like this:

ssh -L local_port:remote_server:remote_port another_remote_server

4

2 回答 2

1

你能张贴STDERRssh -v -L .....吗?可能您需要禁用 tty 分配并以批处理模式运行 ssh。

于 2012-01-04T23:19:08.773 回答
0

这个秘籍应该适用于 Python(即使它适用于 Rails 应用程序)。这是食谱:https ://stackoverflow.com/a/27361295/558639

最大的挑战是说服 ssh 在启动时不提示。

于 2014-12-08T15:47:19.683 回答