Mac OS X remote login

Secure shell

Provided that the Remote login option is checked in the Sharing control panel, you should be able to open a secure terminal connection to your machine with ssh and copy files back and forth with scp.

$ ssh -l shortname hostname
Password:
Last login: Sat Oct 10 12:05:20 2009
hostname:~ shortname$ ls Documents/mycode.cpp
mycode.cpp
hostname:~ shortname$ exit
logout
Connection to hostname closed.
$ scp shortname@hostName:~/Documents/mycode.cpp .
If you want to have UNIX windowing available during your remote session, you should set the -X option. This will ask ssh to enable an X11 connection and set the $DISPLAY variable automatically.
$ ssh -X -l shortname hostname

Enabling X11 forwarding

For security reasons, Mac OS X installations have X11 forwarding turned off by default. The administrator can activate it by editing the X11Forwarding entry in the /etc/sshd_config file.

$ grep '#X11F' /etc/sshd_config
#X11Forwarding no
$ sed 's/#X11Forwarding\ no/X11Forwarding\ yes/' /etc/sshd_config > /tmp/sshd_config
$ sudo mv /tmp/sshd_config /etc/.

AICT accounts

The Central Systems Development and Services unit of AICT provides 1 GB of free online storage plus backup services for all staff and students.

The accounts live on the AFS campus file service. In you AFS home directory there is a .backup directory whose contents are updated each night. This directory is mounted on a separate volume and does not count toward your allocated AFS space. To restore a file, just copy it from .backup to a new location.

You can ssh into your AFS home using your Campus Computing ID (CCID).

ssh -X CCID@gpu.srv.ualberta.ca

Alternatively, you can mount the directory as a Mac OS X volume using the SAMBA protocol. AICT runs SAMBA on samba.srv.ualberta.ca.

Connect to Server dialogue box

Select Connect to Server from the Finder's Go menu. In the Address field, type smb://samba.srv.ualberta.ca/CCID, where CCID is your actual Campus Computing ID (CCID). If you want, you can add this entry to your list of favorite servers by clicking the + button. Click Connect and you'll be asked for your password. Your AFS space is now available in the Finder as a mounted drive. Unmount it by clicking the eject triangle next to its name.