Using SSH on MacOS X



SSH stands for secure shell and is a way to remotely connect to a server and remotely execute commands on the server.

Note: You may want to print these out.


  1. Open Terminal from the Dock at the bottom of the screen, or by using the Finder. You can open the Finder by clicking on the smiley face icon in the dock.


    Browse to Applications > Utilities > Terminal



  2. The following screen appears. Your command prompt will look different than mine.


  3. Enter the following command:

    ssh yourUserName@lab-compute.stat.ucla.edu


  4. If this your first time connecting to lab-compute, you will receive a warning. This is normal. Enter your password and press ENTER.


  5. You are now connected to lab-compute. Note that your command prompt will look different than mine, but that is because I changed it to say ucla_statistics. Try using the commands given in the notes to navigate the file system and perform some operations on files like grep.




    If you need any help, please email me.

    Return to Course Web Page