SSH
De franhpWiki
Tunel ssh invers amb clau
Al servidor del centre
ssh-keygen -t rsa no posar cap passphrase (enter)
Crear /usr/bin/tunel.sh i posar el següent
#!/bin/bash while : do ssh -l user -R 8000:localhost:22 -N example.com done
Copiar .ssh/id_rsa.pub a tecnoba i ficar-ho a .ssh/authorized_keys
scp .ssh/id_rsa.pub user@example.com:/home/user/.ssh/authorized_keys
Tunel ssh invers sense clau
Al servidor:
ssh -l user -R 8000:localhost:22 -f -N example.com
Al la màquina de catux:
ssh root@localhost -p 8000
