Site Tools


students:sshaccess

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
students:sshaccess [2017/05/16 14:10] kjohns23students:sshaccess [2018/10/12 17:29] (current) drea
Line 3: Line 3:
 === 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 <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).+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). To connect from Windows use [[https://wiki.socs.uoguelph.ca/students/sshaccess|puTTY]].
  
 === 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 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   * 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/ccs/anyconnect-vpn-user-guide|www.uoguelph.ca/ccs/anyconnect-vpn-user-guide]]
  
 === SSH Keys === === SSH Keys ===
Line 31: Line 31:
 == 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 privatepublic key pair has now been generated 
 +  In the Key comment field, enter any comment you'd like, to help you identify this key pair, later (e.g. your e-mail address; home; office; etc.) -- the key comment is particularly useful in the event you end up creating more than one key pair 
 +  - 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/password logins, you will no longer be able log in!) 
 +  - 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 52: Line 64:
   - 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.+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.1494943820.txt.gz · Last modified: 2017/05/16 14:10 by kjohns23