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

David Watson
  • 3,394
  • 2
  • 36
  • 51

2 Answers2

1

Can you please post the STDERR of ssh -v -L .....? May be you need to disable the tty allocation and run ssh in batch mode.

Mircea Vutcovici
  • 1,894
  • 19
  • 27
0

This recipe ought to work with Python (even though it was for a Rails app). Here's the recipe: https://stackoverflow.com/a/27361295/558639

The biggest challenge is convincing ssh to not prompt when it starts up.

Community
  • 1
  • 1
fearless_fool
  • 33,645
  • 23
  • 135
  • 217