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

How to replicate ssh -4 behaivor when IPV6 Fails and IPV4 Succeeds #295

Open
ddxv opened this issue Dec 6, 2024 · 1 comment
Open

How to replicate ssh -4 behaivor when IPV6 Fails and IPV4 Succeeds #295

ddxv opened this issue Dec 6, 2024 · 1 comment

Comments

@ddxv
Copy link

ddxv commented Dec 6, 2024

Hello, I have a home server that isn't setup for IPV6. I can connect with ssh ddxv@home from both CLI and using sshtunnel (actually, I use sshtunnel quite a bit, just simplifying it here). When I'm out and about I sometimes have trouble using ssh when my connection requires IPV6. From the command line this is fixed by doing ssh -4 ddxv@home which defaults to IPV4.

For sshtunnel when I try to connect it will do the 2min of attempting IPV6 and eventually fallback to IPV4 but this is a pretty long time when trying to use scripts or for coding.

Is there a way to tell sshtunnel to only use IPV4 like ssh -4 ?

@ddxv
Copy link
Author

ddxv commented Dec 6, 2024

Ah I just found that this is not yet supported in Paramiko:

paramiko/paramiko#770

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

1 participant