Search in this blog

Friday, January 20, 2017

Create SSH tunnel to the virtual server running on hypervisor

To create SSH tunnel to the virtual server running on hypervisor:
ssh -f -N -L 5001:10.100.15.5:5000 us1234.hypervisor.lab.net
Where:
5001 - source port number (port on local machine)
5000 - destination port (port on virtual server)
us1234.hypervisor.lab.net - hypervisor domain address

Opening http://localhost:5001/ in browser actually will open 10.100.15.5:5000 via ssh tunnel for you.

Friday, January 6, 2017

How to create and manage python virtualenv?

Create, activate and deactivate virtualenv
cd my_project_folder

virtualenv .venv
. .venv/bin/activate

deactivate