KLog

October 24, 2008

ssh tunneling and mount samba partition

Filed under: Uncategorized — hwkang @ 6:09 pm

1. SSH tunnel

ssh -g -L <local port>:<remote server>:<remote port> <username on ssh server>@<remote ssh server>

use your password on ssh server

2. mout samba  partition on the remote server

smbmount <remote samba share folder> <local folder> -o <windows domain username>, ip=127.0.0.1, port=<local port>

use windows domain password

e.g.

ssh -g -L 9999:*.cs.cmu.edu:139 hwkang@*.cs.cmu.edu

smbmount //*.cs.cmu.edu/samba/hwkang samba1 -o username=hwkang,ip=127.0.0.1,port=9999

No Comments »

No comments yet.

RSS feed for comments on this post. TrackBack URL

Leave a comment

Powered by WordPress