Skip to content

Instantly share code, notes, and snippets.

Embed
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 user@yourserver.com 0/0 --ssh-cmd 'ssh -i /your/key/path.pem'
@aniamembui

This comment has been minimized.

Copy link

@aniamembui aniamembui commented May 25, 2018

Thanks so much Davor111 for your contibution: is very helpful to know how to add ssh parameters to SSHUTTLE !!!
Thank you !!

@thulasidhasan

This comment has been minimized.

Copy link

@thulasidhasan thulasidhasan commented Nov 15, 2018

Thanks so much Davor111

@eit

This comment has been minimized.

Copy link

@eit eit commented Nov 21, 2019

thanks

@tonsV2

This comment has been minimized.

Copy link

@tonsV2 tonsV2 commented Jul 18, 2020

If you have an entry referencing the key for the server in .ssh/config all you need to do is:

sshuttle --dns -vr user@server 0/0 --ssh-cmd 'ssh'

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