Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"SSH_MODE=-D" Not Working #42

Open
bunlinge opened this issue Jun 5, 2022 · 4 comments
Open

"SSH_MODE=-D" Not Working #42

bunlinge opened this issue Jun 5, 2022 · 4 comments

Comments

@bunlinge
Copy link

bunlinge commented Jun 5, 2022

    environment:
      - SSH_HOSTUSER=root
      - SSH_HOSTNAME=remote-addr
      - SSH_HOSTPORT=22
      - SSH_TUNNEL_HOST=0.0.0.0
      - SSH_TUNNEL_LOCAL=1080
      - SSH_MODE=-D
@bunlinge
Copy link
Author

bunlinge commented Jun 5, 2022

Sorry, I'm using an old version

@bunlinge
Copy link
Author

bunlinge commented Jun 5, 2022

    environment:
      - SSH_REMOTE_USER=root
      - SSH_REMOTE_HOST=remote_addr
      - SSH_REMOTE_PORT=22
      - SSH_BIND_IP=0.0.0.0
      - SSH_TUNNEL_PORT=1080
      - SSH_MODE=-D

@TowyTowy
Copy link

I can't for the life of me get it to work. I am sure I am using the latest version...

@TowyTowy
Copy link

TowyTowy commented Mar 15, 2024

SSH_REMOTE_USER=root
SSH_REMOTE_HOST=remote_addr
SSH_REMOTE_PORT=22
SSH_BIND_IP=0.0.0.0
SSH_TUNNEL_PORT=1080
SSH_MODE=-D

[INFO ] Tunneling 0.0.0.0:1080 on root@remote_addr:22 to localhost:22
[INFO ] # autossh -M 0 -N -o StrictHostKeyChecking=no -o ServerAliveInterval=10 -o ServerAliveCountMax=3 -o ExitOnForwardFailure=yes -t -t -D 0.0.0.0:1080:localhost:22 -p 22 root@remote_addr
Bad dynamic forwarding specification '0.0.0.0:1080:localhost:22'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants