students:sshaccess
This is an old revision of the document!
SoCS SSH Access
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 <username>@<hostname>socs.uoguelph.ca”, where <username> is your SoCS username and <hostname> is the name of the server you wish to connect to (i.e. linux, portkey).
Off-Campus Access
The CCS Firewall blocks ssh access to most hosts from off campus. To connect from off campus there are two options:
- Connect to portkey.socs.uoguelph.ca and from there connect to your desired host
- Set up the CCS VPN. Instructions can be found at vpn.uoguelph.ca
SSH Keys
SSH Keys allow you to use a key to connect instead of using your password. This has the benefit of being both more secure, and more convenient to use.
To set up public key private key access to linux:
Part A On OS/X or Linux
- Have a passphrase (password) handy that you can remember.
- Open a terminal window
- Type ssh-keygen -t rsa -C yourusername@linux.socs.uoguelph.ca at the command prompt
- Press return to accept the default file locations for storing keys
- Enter your passphrase when prompted (make sure you can remember it)
- Enter the SAME passphrase again
- In the same terminal window, change to your .ssh directory. A foolproof way to do this is to first type cd followed by return, then type cd .ssh
- Type “more id_rsa.pub” without the quotes
- Copy the long string of text that begins with ssh-rsa and ends with yourusername@linux.socs.uoguelph.ca. It will wrap across several lines.
- Keep that text in the clipboard for the next step.
Part A Windows
- 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
- Keep the text in your clipboard for the next step.
Part B For all platforms
- ssh to portkey.scos.uoguelph.ca using your SoCS login and password (use putty on windows if you don't have a different client. On OS/X and linux just use a terminal)
- Type “cd .ssh” at the command prompt (without the quotes).
- If you get an error “.ssh No such file or directory”, type “mkdir .ssh”, then type “cd .ssh”.
- Use your favourite command line editor (vim, nano, emacs or whichever) to edit the authorized_keys file
- i.e. type 'nano authorized_keys' at the command line
- Unless you've done this step once already, you will be creating this file. it MUST be called authorized_keys
- Paste in the long string of text that you copied to your clipboard in step A
- Save the file.
- Log out of Portkey.
Part C For all platforms
- Open putty or a terminal window
- ssh to linux.socs.uoguelph.ca
- You SHOULD be prompted for the passphrase you used in Part A, and then you should connect to linux.
- This login method works for secure FTP programs too, such as filezilla, which will allow you to ftp files directly to your linux account.
students/sshaccess.1494943535.txt.gz · Last modified: 2017/05/16 14:05 by kjohns23