Is there a trick to running Fabric over a reverse SSH tunnel? An interactive ssh
connects fine back over the turnnel, but running fab
, I just get asked for my password repeatedly.
相关问题
- JavaScript File Transfer SSH
- Why does this bash script work at console but fail
- SSH Fingerprint not authorized on Heroku after git
- (Scp - Permission Denied (Public Key) [closed]
- How to generate an ssh key for logging into a serv
相关文章
- Check if directory exists on remote machine with s
- Git Clone Fails: Server Certificate Verification F
- Test if File/Dir exists over SSH/Sudo in Python/Ba
- Can't access AWS CodeCommit with SSH
- Sanity check SSH public key? [closed]
- Spark EC2 SSH connection error SSH return code 255
- Use RSA with Eclipse Remote Systems Explorer?
- Paramiko - Bad Authentication Type [Cisco SG-300 S
Here's a solution that doesn't involve writing any extra Python code:
If you set up your SSH configuration to tunnel over a SOCKS proxy, you can tell Fabric to use the SSH configuration. It's sweet.
Example
$HOME/.ssh/config file
:Now tell Fabric to use the configuration:
Now
ssh bastion
in one window, then runfab
from another window.See the official Fabric documentation for more information.
NB. You will have to have nc (netcat) installed on your machine to use this solution.
Here is a snippet with a solution
https://gist.github.com/856179
Just copy, paste and use