| |
SocksProxy 50 - 23 Nov 2020 - Main.JeremyLee
|
|
META TOPICPARENT | name="WebHome" |
Secure Proxy Browsing | | In this step you are going to create a secure connection or "tunnel" to the Columbia Unix cluster. You can use this same general procedure with any other machines to which you may have access, whether that is a box you leave at home, a web hosting account to run a web site, or anyone else who gives you ssh access. All you need is an SSH client program. | |
< < | OS X (Mac) or Linux users | > > | Windows 10 / OS X (Mac) / Linux users | | | |
< < | If you use the OS X or Linux operating systems, you are in luck! A standard ssh client is already installed on your machine. On Linux machines you should be able to find a program called "terminal" or "command line" in you standard application menu. On OS X you can find the terminal program in your Applications directory under "Utilities". The terminal program is a general purpose text environment for running any number of different programs and commands, of which ssh is only one. While a text-based environment may not suit all tasks, you will see in this case how it enables you to accomplish some tasks very simply that would otherwise require multiple programs and steps. | > > | If you use the Windows 10, OS X or Linux operating systems, you are in luck! A standard ssh client is already installed on your machine. On Windows 10 press the "windows" key or just click the start menu search box, then type "cmd" and press enter. On Linux machines you should be able to find a program called "terminal" or "command line" in you standard application menu. On OS X you can find the terminal program in your Applications directory under "Utilities". The terminal program is a general purpose text environment for running any number of different programs and commands, of which ssh is only one. While a text-based environment may not suit all tasks, you will see in this case how it enables you to accomplish some tasks very simply that would otherwise require multiple programs and steps. | | Once you have opened the terminal application simply enter this command "ssh -D 7070 uni@cunix.columbia.edu" where "uni" is your own UNI, e.g. abc1234. When you hit enter it will try and connect to the Columbia CUNIX cluster. Assuming your network connection is working, the next thing you see will be a message asking if you wish to accept the host key for the CUNIX machine. Hit enter to accept it and then you will be asked for your Columbia UNI and password. Log in normally and it should complete setting up the tunnel and return you to a blinking cursor with no further chatter. Now you are logged in to the CUNIX machines. From here you could run other programs on the CUNIX machines, but that would be for another lesson. For this exercise, simply leave your terminal window open and move on to step two.
Windows users | |
< < | Windows, unfortunately, does not come with an ssh client by default so we need to download and install one before we can connect to the Columbia computers with it. The client we are going to install is called "!PuTTY" and can be downloaded from here. Once you have downloaded and run the installer, launch PuTTY. Now we need to configure PuTTY to connect to the Columbia CUNIX mainframe. CuIT? has instructions for this here. Or you can install PuTTY with the current Windows installer from here, and then follow the steps below to configure PuTTY to make a tunnel to the Columbia Unix cluster and save the resulting configuration for future use:
- Open PuTTY.
- Where it says "Host Name (or IP address)" enter "cunix.cc.columbia.edu"
- Under "Saved Sessions" enter "Columbia" or "CUNIX" or any other name that will help you remember what this connection is for later.
- Under the "Category" menu on the left, click on the "Connection" menu list and then the "SSH" menu underneath it.
- Click on "Tunnels" in the "SSH" menu.
- Under "Add new forwarded port:" enter 7070
- Leave the "Destination" field blank but select the 'Dynamic' option underneath it.
- Click the "Add" button to add this port.
- Click "Save" to save all these settings.
- Click on "Open" to open your new connection to the CUNIX servers.
- Enter your UNI and password when prompted.
- Once connected the tunnel is open and you can move to step two. After you are finished using the tunnel, type logout and press Enter.
| > > | The OpenSSH? Client in Windows 10 was added in 2018. If for any reason your machine has not been updated since that time, here are instructions to download the application from Microsoft. | | Step 2: Tell your browser to use the secure tunnel |
|
|
|
This site is powered by the TWiki collaboration platform. All material on this collaboration platform is the property of the contributing authors. All material marked as authored by Eben Moglen is available under the license terms CC-BY-SA version 4.
|
|
| |