Showing posts with label ssh. Show all posts
Showing posts with label ssh. Show all posts

Friday, 25 November 2016

SSH Tunnel



The easiest way to create a socks compliant ssh tunnel:

From the computer inside the network:

ssh -D [port number] -fN user@server
Then you can configure the application or service on the machine to access the remote server via the SSH tunnel and port configured.

e.g.


ssh -D 3333 -fN user@server.com

bfgminer -S opencl:auto --socks-proxy localhost:3333 --debug



Thursday, 8 July 2010

how to keep program running after closing ssh session

I first tried <command> &  - but that only put the program in the background when disconnecting it terminted the job

I then tried nohup <command> & detaching it supposedly from the terminal but it did not work either

 I then found a program called screen

sudo apt-get install screen 


To start an shell app just type

screen -Amd command



Once it's running, press Ctrl-a (control and a at the same time), then press d

to re-attach to it later, login with ssh and type

screen -r