Select Page

Unix Clients

How to Use SSH

  • If your username is the same on that remote machine,> ssh hostname.seas.ucla.edu
  • If your username is different on that remote machine,> ssh hostname.seas.ucla.edu -l username
  • The first time you connect to a machine, you will see:
    Host key not found from the list of known hosts.
    Are you sure you want to continue connecting (yes/no)?
  • Enter yes to continue connecting.

How to Use SFTP

sftp hostname.seas.ucla.edu
password:
sftp> cd /tmp
sftp> get test.gif
Fetching /tmp/test.gif to test.gif
/tmp/test.gif                                 100% 1189     1.2KB/s   00:00
sftp> quit
sftp hostname.seas.ucla.edu
testuser@hostname.seas.ucla.edu's password:
sftp> cd /tmp
sftp> ls test*
test.gif
sftp> get test.gif
Fetching /tmp/test.gif to test.gif
/tmp/test.gif                                 100% 1189     1.2KB/s   00:00
sftp> quit

 

NOTE: Hostnames depend on your account status: fac, grad, ugrad, and staff.  For example: ssh grad.seas.ucla.edu

Only connect to a specific machine name if your instructor or TA directs you to do so.