| Print View | RSS |

RemoteAccess/SSHTunneling/Mac

Remote Access > SSH Tunneling > Mac OS X

SSH Tunneling on Mac OSX

Tunneling SMTP

  1. Go -> Applications -> Utilities -> Terminal

  2. su to root (need to be root to forward port numbers less than 1024; smtp uses 25 by default)
  3. ssh -l username -L 25:mail.cs.toronto.edu:25 cs.toronto.edu
  4. In your mail client adjust your smtp settings so that the SMTP server points to: 127.0.0.1
  5. Send mail.

Tunneling Samba

  1. Go -> Applications -> Utilities -> Terminal

  2. su to root (need to be root to forward port numbers less than 1024; smb uses 139 by default)
  3. ssh -l username -L 139:smb.cs.toronto.edu:139 cs.toronto.edu
    Keep this connection open while you perform the next step.

  4. ToolBar -> Go -> Connect to Server...
    In the Address box supply:
    smb://127.0.0.1/username
    Supply your CSLAB username and password, making sure you only supply the first eight characters of your CSLab password.

  5. If all goes as expected, you should now have mapped your CSLAB home directory via an SSH tunnel.