Auto ssh upon connection to wifi that isn't home with debian
Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
I want to set a poor man's VPN, so whenever I am away from home my traffic will automatically proxy through my house. I have the ssh command itself figured out, but don't know how to make it automatically happen as soon as I connect to wifi. the ssh command I am using is ssh -D 443 root@$ip -p 22 -N
. For the sake of ease use hssid
for home and assid
for away. How do I accomplish this?
debian ssh vpn
add a comment |Â
up vote
0
down vote
favorite
I want to set a poor man's VPN, so whenever I am away from home my traffic will automatically proxy through my house. I have the ssh command itself figured out, but don't know how to make it automatically happen as soon as I connect to wifi. the ssh command I am using is ssh -D 443 root@$ip -p 22 -N
. For the sake of ease use hssid
for home and assid
for away. How do I accomplish this?
debian ssh vpn
Look at thewpa_supplicant
API, it produces events on connecting. Network manager also may or may not produce events, probably on the D-Bus. No, I don't know details, I'd have to look them up myself by reading the docs.
â dirkt
Mar 24 at 7:14
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I want to set a poor man's VPN, so whenever I am away from home my traffic will automatically proxy through my house. I have the ssh command itself figured out, but don't know how to make it automatically happen as soon as I connect to wifi. the ssh command I am using is ssh -D 443 root@$ip -p 22 -N
. For the sake of ease use hssid
for home and assid
for away. How do I accomplish this?
debian ssh vpn
I want to set a poor man's VPN, so whenever I am away from home my traffic will automatically proxy through my house. I have the ssh command itself figured out, but don't know how to make it automatically happen as soon as I connect to wifi. the ssh command I am using is ssh -D 443 root@$ip -p 22 -N
. For the sake of ease use hssid
for home and assid
for away. How do I accomplish this?
debian ssh vpn
asked Mar 24 at 7:11
user52470
807
807
Look at thewpa_supplicant
API, it produces events on connecting. Network manager also may or may not produce events, probably on the D-Bus. No, I don't know details, I'd have to look them up myself by reading the docs.
â dirkt
Mar 24 at 7:14
add a comment |Â
Look at thewpa_supplicant
API, it produces events on connecting. Network manager also may or may not produce events, probably on the D-Bus. No, I don't know details, I'd have to look them up myself by reading the docs.
â dirkt
Mar 24 at 7:14
Look at the
wpa_supplicant
API, it produces events on connecting. Network manager also may or may not produce events, probably on the D-Bus. No, I don't know details, I'd have to look them up myself by reading the docs.â dirkt
Mar 24 at 7:14
Look at the
wpa_supplicant
API, it produces events on connecting. Network manager also may or may not produce events, probably on the D-Bus. No, I don't know details, I'd have to look them up myself by reading the docs.â dirkt
Mar 24 at 7:14
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f433219%2fauto-ssh-upon-connection-to-wifi-that-isnt-home-with-debian%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Look at the
wpa_supplicant
API, it produces events on connecting. Network manager also may or may not produce events, probably on the D-Bus. No, I don't know details, I'd have to look them up myself by reading the docs.â dirkt
Mar 24 at 7:14