Skip to content

Instantly share code, notes, and snippets.

@Razikus
Razikus / script.sh
Created January 25, 2018 08:19
Create id_rsa and id_rsa.pub, force overwrite existing key
echo -e 'y\n' | ssh-keygen -f $HOME/.ssh/id_rsa -t rsa -N ''
@theherk
theherk / sshuttle.service
Created September 19, 2016 21:57
systemd service unit file for sshuttle
[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
@halberom
halberom / main.yml
Last active August 17, 2020 02:51
ansible - setfacl example
---
- acl: name=/path/to/scripts/directory entity={{item}} etype=user permissions=rwx default=yes state=present
with_items:
- www-data
- root