Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
training:getting_started_with_linux [2016/04/30 01:37] kluong |
training:getting_started_with_linux [2021/09/19 21:59] (current) |
||
---|---|---|---|
Line 3: | Line 3: | ||
* Download and install virtual box - https://www.virtualbox.org/wiki/Downloads | * Download and install virtual box - https://www.virtualbox.org/wiki/Downloads | ||
* Download and install xubuntu - http://xubuntu.org/getxubuntu/ | * Download and install xubuntu - http://xubuntu.org/getxubuntu/ | ||
+ | |||
+ | |||
+ | ===== Commands ===== | ||
+ | |||
+ | ==== SSH ==== | ||
+ | |||
+ | SSH into a host with a USERNAME and PORT. | ||
+ | |||
+ | <code> | ||
+ | ssh USERNAME@HOSTNAME -p PORT | ||
+ | </code> | ||
+ | |||
+ | Example | ||
+ | |||
+ | <code> | ||
+ | ssh [email protected] -p 22 | ||
+ | </code> | ||
+ | |||
+ | ==== Dynamic Forwarding ==== | ||
+ | |||
+ | Dynamically forward traffic through port 5050 on hostname with a port: | ||
+ | |||
+ | <code> | ||
+ | ssh -D 5050 USER@HOSTNAME -p PORT | ||
+ | </code> | ||
+ | |||
+ | Make sure you configure your browser to use a SOCKS5 proxy. | ||
+ | |||
+ | |||
+ | |||
+ | ==== Running Rails ==== | ||
+ | |||
+ | Running a server with port XXXX. | ||
+ | |||
+ | <code> | ||
+ | rails s -p XXXX | ||
+ | </code> | ||
+ | |||
+ |