Radarcape:Miscellaneous: Difference between revisions
Jump to navigation
Jump to search
imported>Dl4mea Created page with "=== Using SOCAT to copy TCP to a file === socat -u TCP:localhost:10002 OPEN:radarcape.bin,creat" |
imported>Dl4mea |
||
Line 1: | Line 1: | ||
=== Using SOCAT to copy TCP to a file === | === Using SOCAT to copy TCP to a file === | ||
socat -u TCP:localhost:10002 OPEN:radarcape.bin,creat | socat -u TCP:localhost:10002 OPEN:radarcape.bin,creat | ||
=== Tunneling a port to another Radarcape === | |||
First, generate a SSH key pair on the local Radarcape | |||
cd ~/.ssh | |||
dropbearkey -t rsa -f id_rsa | |||
Set attributes of ~, .ssh and authorized_keys are set to 600. | |||
Next, copy the public key given from above command to the server folder ~/.ssh/authorized_keys. Mind that the attributes of ~, .ssh and authorized_keys are set to 600. | |||
On the local Radarcape, add these commands to cape.sh | |||
nohup ssh -p <server_ssh_port> -i ~/.ssh/id_rsa -N -R *:8002:localhost:80 root@<server_domain> & | |||
nohup ssh -p <server_ssh_port> -i ~/.ssh/id_rsa -N -R *:1302:localhost:10003 root@<server_domain> & | |||
nohup ssh -p <server_ssh_port> -i ~/.ssh/id_rsa -N -R *:2202:localhost:22 root@<server_domain> & | |||
Now the local Radarcape is accessible on <server_domain> under port 8002, 1302 and 2202. |
Revision as of 17:04, 1 October 2013
Using SOCAT to copy TCP to a file
socat -u TCP:localhost:10002 OPEN:radarcape.bin,creat
Tunneling a port to another Radarcape
First, generate a SSH key pair on the local Radarcape
cd ~/.ssh dropbearkey -t rsa -f id_rsa
Set attributes of ~, .ssh and authorized_keys are set to 600.
Next, copy the public key given from above command to the server folder ~/.ssh/authorized_keys. Mind that the attributes of ~, .ssh and authorized_keys are set to 600. On the local Radarcape, add these commands to cape.sh
nohup ssh -p <server_ssh_port> -i ~/.ssh/id_rsa -N -R *:8002:localhost:80 root@<server_domain> & nohup ssh -p <server_ssh_port> -i ~/.ssh/id_rsa -N -R *:1302:localhost:10003 root@<server_domain> & nohup ssh -p <server_ssh_port> -i ~/.ssh/id_rsa -N -R *:2202:localhost:22 root@<server_domain> &
Now the local Radarcape is accessible on <server_domain> under port 8002, 1302 and 2202.