This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo -e 'y\n' | ssh-keygen -f $HOME/.ssh/id_rsa -t rsa -N '' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=sshuttle service a permanent tunnel | |
After=network.target | |
[Service] | |
ExecStart=/usr/bin/sshuttle -r h4s@localhost:39111 0.0.0.0/0 --dns -D --pidfile=/var/run/sshuttle.pid -e 'ssh -i /home/h4s/.ssh/whtunnel2' | |
Restart=always | |
Type=forking | |
PIDFile=/var/run/sshuttle.pid |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- acl: name=/path/to/scripts/directory entity={{item}} etype=user permissions=rwx default=yes state=present | |
with_items: | |
- www-data | |
- root |