smbclient/smbmount

samba does not need to be running to use these commands /usr/local/samba/bin/smbclient -L antiope telnet 192.168.1.10 139 /usr/local/samba/bin/smbclient //antiope/c /usr/local/samba/bin/nmblookup antiope Let us say that you wish to tunnel the smbclient through ssh. 1. Set up the ssh tunnel ssh -l simon -L 1100:smb.cs.toronto.edu:139 qew.cs.toronto.edu 2. Run smbclient as follows: smbclient //localhost/<username> -p 1100 -U <username> Let us say that you wish to use smbmount to mount your $HOME directory from off campus. This requires an SSH tunnel, since only port 22 is allowed through our firewall. 1. Set up the ssh tunnel ssh -l <username> -L 1100:smb.cs.toronto.edu:139 qew.cs.toronto.edu 2. Create a directory under /mnt on your local machine to serve as your mount point (i.e. /mnt/mysmbmnt) 3. Run the smbmount command: smbmount //localhost/<username> /mnt/mysmbmnt -o port=1100,username=<username> 4. In order to unmount your $HOME directory smbumount /mnt/mysmbmnt