Skip to content

Instantly share code, notes, and snippets.

Created February 17, 2017 08:34
What would you like to do?
How to use sshuttle with .key, .csr or .pem files for authentication
#It's not directly mentioned in the documentation on how to do this, so here you go. This command will tunnel everything including DNS:
sshuttle --dns -vr 0/0 --ssh-cmd 'ssh -i /your/key/path.pem'
Copy link

alexgtn commented Jan 19, 2022


Copy link

Thank you so much!

Copy link

You may try this command, given that your remote server is defined in .ssh/config as myserver where is your server's IP.
sshuttle --dns -r myserver 0/0 -x

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment