Samba over SSH

As the title tells you we are going to talk about samba shares over ssh. The idea came to me with need of editing some PHP pages that also needed to be tested in real time on remote server. I know you would say you could use ssh and nano editor or maybe VNC or something else. I know that but I wanted to use windows version of scite and and at the same time save changes "locally".

So lets start with things that you are going to need to be able to do this:

  1. Windows PC
  2. Putty
  3. Microsoft's loopdevice

So first things first: You probably as me have several drives ( hard drives ) mapped to your work PC and you don't want to lose them while contacting other share, that's why we need to install/add loopback device ( network adapter ) on your PC.

So lets get to it..

  1. Go to Control Panel and 2x click on add hardware icon
  2. Then choose add new hardware and press next (its going to take a while)
  3. Then in next window choose: and new device (guessing here because I am running a Norwegian version of windows 2000 pro)
  4. On next dialogue box choose: I am going to choose a device from the list
  5. Choose then a Network adapter ( or NIC )
  6. As Manufacturers choose Microsoft and as NIC use Microsoft Loopback Adapter
  7. After this press next, next and with this we have installed loopback ( hard part )

Now go in networks in Control Panel and add following for our new NIC:

  1. IP address = 10.0.0.1
  2. SUBnet = 255.255.255.0
  3. Gateway (same as you have for your standard NIC)
  4. DNS (same as you have for your standard NIC)

Now its time to reboot (as this is not Linux)

After reboot its time to start working on PUTTY setup which is easy part. To save you and me some time, I am not going to write much but going to show you a picture with settings...

Putty samba

After you added stuff in to PUTTY its time to out this setup to the test. Connect with putty and login to your server. After that press windows flag button + r to open a run window and type there 10.0.0.1

 

Run command

In a few sec you are going to be asked for your password and after that you are going to see and have access to your share through SSH locally.

Samba

Wicked isn't it ...

'PS: If you are unable to access your share (idle-time/next-logon) make sure that you disconnect and deactivate your Microsoft NIC and reactivate it again. After that reconnect with putty and everything would be OK again.'

Author : Adis Beglerovic

 

User Comments

 

http://www.axllent.org/docs/networking/samba_over_ssh

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值