Samba over SSH

    技术2025-07-11  6

    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:

    Windows PC Putty 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..

    Go to Control Panel and 2x click on add hardware icon Then choose add new hardware and press next (its going to take a while) Then in next window choose: and new device (guessing here because I am running a Norwegian version of windows 2000 pro) On next dialogue box choose: I am going to choose a device from the list Choose then a Network adapter ( or NIC ) As Manufacturers choose Microsoft and as NIC use Microsoft Loopback Adapter 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:

    IP address = 10.0.0.1 SUBnet = 255.255.255.0 Gateway (same as you have for your standard NIC) 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...

    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

     

    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.

    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

     

    最新回复(0)