Archive for Май, 2016

Reverse SSH Tunneling

Posted: 25th Май 2016 by shmyak in Пингвин

#apt-get install autossh #ssh-keygen… # cat /etc/rc.local … /usr/bin/autossh -M {monitoring port} -N -f -o «PubkeyAuthentication=yes» -o «PasswordAuthentication=no» -o «ServerAliveInterval 30» -o «ServerAliveCountMax 3» -i /path/to/ssh_key -R 12345:localhost:{ssh port} {user}@{remote server} -p {remote ssh port} exit 0

# lsusb Bus 001 Device 005: ID 12d1:14dc Huawei Technologies Co., Ltd. # cat /etc/udev/rules.d/40-E303Switch.rules   # Huawei E303 Fallback-Mode Modeswitch ATTRS{idVendor}==»12d1″, ATTRS{idProduct}==»1f01″, RUN+=»/bin/E303Modeswitch.sh» # cat /bin/E303Modeswitch.sh #!/bin/sh sudo usb_modeswitch -v 0x12d1 -p 0x1f01 -V 0x12d1 -P 0x14db -M «55534243123456780000000000000a11062000000000000100000000000000» # chmod a+x /bin/E303Modeswitch.sh После копипаста необходимо поправить кавычки!