How to use a Mac to access sage

Creating an alias, future uses will require that you only enter sage from your terminal prompt to connect remotely. (Requires knowledge of a UNIX based text editor)

  1. Launch the terminal application (this is a standard application on the Mac).
  2. From the prompt, create a file (with a text editor like vi named .bash_profile
  3. Add the following line to the file: alias sage='ssh sage.ics.purdue.edu -l LOGIN'
  4. Shut down your terminal.
  5. Restart your terminal.
  6. Type sage and hit enter.
  7. You may be asked to save a key, reply YES.
  8. Enter your Purdue password and you should now be connected!

Not interested in creating an alias?

  1. Launch the terminal application.
  2. Type ssh sage.ics.purdue.edu -l LOGIN
  3. You may be asked to save a key, reply Yes.
  4. Enter your Purdue password and you should now be connected!
  5. Enter the command logout to disconnect and to return to your local terminal.

Common error reported by Mac users
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@       WARNING: POSSIBLE DNS SPOOFING DETECTED!          @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
The RSA host key for sage.ics.purdue.edu has changed, and the key for the corresponding IP address 128.210.10.101 is unknown. 
This could either mean that DNS SPOOFING is happening or the IP address for the host and its host key have changed at the same time.
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that the RSA host key has just been changed.
The fingerprint for the RSA key sent by the remote host is 67:76:c6:81:8b:86:43:54:3b:63:32:12:d5:4b:d9:e0.
Please contact your system administrator.
Add correct host key in /Users/YOURLOGIN/.ssh/known_hosts to get rid of this message.
Offending key in /Users/YOURLOGIN/.ssh/known_hosts:1
RSA host key for sage.ics.purdue.edu has changed and you have requested strict checking.
Host key verification failed."

How to fix this problem:

  1. Launch the terminal application.
  2. Change directories to: /Users/YOURLOGIN/.ssh/known_hosts
  3. Open the known_hosts file in your favorite text editor (for example: vi).
  4. Remove the line related to sage.  It may be the only line in this file if you have never SSH'ed to another server.
  5. Try to connect to sage again.