Accessing Samba shares through SSH



In Linux, you can access Samba shares by using a SSH prompt. We need a host PC (65.219.4.23) and a destination PC (192.168.0.81). We’ll usejack as a username but first we’ll create a new mount directory:
mkdir -p /samba/share
Now we connect to it:
ssh -N -L 139:192.168.0.81:139 jack@65.219.4.23 jack@65.219.4.23
Now we do a
umount /samba/share
/bin/mount -t smbfs -o username=jack,workgroup=workgroup_name,password=user_password,
port=139,dmask=770,fmask=660,netbiosname=homecpu
//localhost/share /samba/share


Digg Google Bookmarks reddit Mixx StumbleUpon Technorati Yahoo! Buzz DesignFloat Delicious BlinkList Furl

1 comments:

madin said...

replica mont blanc uk is a brand with a long history. Founded in 1906, the replica mont blanc donation penscompany is named after one of the highest mountains in Europe, marking the brand's commitment to producing fine writing instruments. Using the brand that produces the best writing instruments, it helps to know how to find the Montblanc fountain pen that works best for you. From the best Montblanc fountain pens to ballpoint and ballpoint pens, you have a choice. Whether you are a collector or a keen writer, this article will take you to the top 10 Montblanc fountain pens on the market.

Post a Comment

Popular Posts