students:sshaccess
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
students:sshaccess [2017/05/16 14:02] – kjohns23 | students:sshaccess [2018/10/12 17:29] (current) – drea | ||
---|---|---|---|
Line 1: | Line 1: | ||
==== SoCS SSH Access ==== | ==== SoCS SSH Access ==== | ||
- | == The Basics === | + | === The Basics === |
- | SSH Allows you to remotely connect to SoCS Linux servers. To connect from a Linux or Mac OS/X base computer, use the command "ssh < | + | SSH Allows you to remotely connect to SoCS Linux servers. To connect from a Linux or Mac OS/X base computer, use the command "ssh < |
=== Off-Campus Access === | === Off-Campus Access === | ||
- | The CCS Firewall blocks ssh access to most hosts from off campus. To connect from off campus there are two options: | + | The Campus |
* Connect to portkey.socs.uoguelph.ca and from there connect to your desired host | * Connect to portkey.socs.uoguelph.ca and from there connect to your desired host | ||
- | * Set up the CCS VPN. Instructions can be found at [[http://vpn.uoguelph.ca|vpn.uoguelph.ca]] | + | * Set up the CCS VPN. Instructions can be found at [[https://www.uoguelph.ca/ |
=== SSH Keys === | === SSH Keys === | ||
Line 27: | Line 27: | ||
- Type "more id_rsa.pub" | - Type "more id_rsa.pub" | ||
- Copy the long string of text that begins with ssh-rsa and ends with yourusername@linux.socs.uoguelph.ca. | - Copy the long string of text that begins with ssh-rsa and ends with yourusername@linux.socs.uoguelph.ca. | ||
- | - Keep that text in the clipboard for the next step. | + | - Keep that text in the clipboard for the next step and go to Part B For all Platforms |
== Part A Windows == | == Part A Windows == | ||
- Have a passphrase(password) handy that you can remember | - Have a passphrase(password) handy that you can remember | ||
- | - Follow all of "step one" on this website: http://www.ualberta.ca/CNS/RESEARCH/LinuxClusters/pka-putty.html | + | - If you don't already have puTTY installed you can download it [[https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html|here]] |
+ | - Start the PuTTYgen utility, by double-clicking on its .exe file | ||
+ | - For Type of key to generate, select SSH-2 RSA | ||
+ | - In the Number of bits in a generated key field, specify either 2048 | ||
+ | - Click the Generate button | ||
+ | - Move your mouse pointer around in the blank area of the Key section, below the progress bar until the progress bar is full | ||
+ | - A private/ public key pair has now been generated | ||
+ | | ||
+ | - Type a passphrase in the Key passphrase field & re-type the same passphrase in the Confirm passphrase field | ||
+ | - Click the Save public key button & choose whatever filename you'd like (some users create a folder in their computer named my_keys) | ||
+ | - Click the Save private key button & choose whatever filename you'd like (you can save it in the same location as the public key, but it should be a location that only you can access and that you will NOT lose! If you lose your keys and have disabled username/ | ||
+ | - Right-click in the text field labeled Public key for pasting into OpenSSH authorized_keys file and choose Select All | ||
+ | - Right-click again in the same text field and choose Copy. | ||
- Keep the text in your clipboard for the next step. | - Keep the text in your clipboard for the next step. | ||
Line 37: | Line 49: | ||
- ssh to portkey.scos.uoguelph.ca using your SoCS login and password (use putty on windows if you don't have a different client. | - ssh to portkey.scos.uoguelph.ca using your SoCS login and password (use putty on windows if you don't have a different client. | ||
- | - Type "cd .ssh" at the command prompt (without the quotes) | + | - Type "cd .ssh" at the command prompt (without the quotes). |
+ | - If you get an error ".ssh No such file or directory", | ||
- Use your favourite command line editor (vim, nano, emacs or whichever) to edit the authorized_keys file | - Use your favourite command line editor (vim, nano, emacs or whichever) to edit the authorized_keys file | ||
* i.e. type 'nano authorized_keys' | * i.e. type 'nano authorized_keys' | ||
Line 47: | Line 60: | ||
== Part C For all platforms == | == Part C For all platforms == | ||
- Open putty or a terminal window | - Open putty or a terminal window | ||
- | - ssh to linux.socs.uoguelph.ca | + | - ssh to portkey.socs.uoguelph.ca |
- | - You SHOULD be prompted for the passphrase you used in Part A, and then you should connect to linux. | + | - You SHOULD be prompted for the passphrase you used in Part A, and then you should connect to portkey. |
- This login method works for secure FTP programs too, such as filezilla, which will allow you to ftp files directly to your linux account. | - This login method works for secure FTP programs too, such as filezilla, which will allow you to ftp files directly to your linux account. | ||
+ | |||
+ | Once you have your ssh keys set up you will be able to use them to log in to any SoCS Linux server (i.e. portkey, linux). Remember, you can only log into portkey directly from off campus unless you've set up the CCS VPN. |
students/sshaccess.1494943355.txt.gz · Last modified: 2017/05/16 14:02 by kjohns23