June 24, 2021

Decrypt Info

Because we care, we're security aware.

How To Map Linux Directory In Windows Explorer

0 0
2 min read
Map-directory-decryptinfo
0 0
Read Time:1 Minute, 28 Second

While using ssh, we can access linux directories in windows explorer through map network option. For doing this follow these steps

Step 1  Installation

We required two tools for mapping linux network drive. Both tools will help to connect network drive in the explorer

  1. Install the latest version of WinFsp ( https://github.com/billziss-gh/winfsp/releases/tag/v1.7)

WinFsp is used for the fuse facility

  1. Install the latest version of SSHFS-Win ( https://github.com/billziss-gh/sshfs-win/releases)

SSHFS allows to access and mount a remote filesystem using SFTP. If SSh service is running on the server it supports and enable this SFTP access by default, so SSHFS is very easy to use. There is no need to configure any special service or configuration on the server side

After installation of WinFsp and SSHFS-Win we can map a directory on an SSHFS host using Windows Explorer or the net use in command line.

 

Step 2

Procedure – I

Windows Explorer (Windows + E)

In Windows Explorer select  the option

This PC—– > Map Network Drive and enter the drive letter and SSHFS path using the following syntax:

\\sshfs\user@Host(ipaddress)[\path]

e.g  \\sshfs\root@192.168.106.128\tmp

After the execution it prompts for the username and password for the remote server. You can use the save these credentials option with windows credential manager

Now To disconnect/unmap the drive, select drive and right click and choose disconnect option.

Procedure – II

Command Line

Net use command can be used to map drive in windows command line

C:/ > net use Z: \\sshfs\username @hostname(IP address)

 

List drives with the net use command

$ net use

For unmap/disconnect the attached drive

$ net use Z: /delete

 

Happy
Happy
0 %
Sad
Sad
0 %
Excited
Excited
0 %
Sleepy
Sleepy
0 %
Angry
Angry
0 %
Surprise
Surprise
0 %

Average Rating

5 Star
0%
4 Star
0%
3 Star
0%
2 Star
0%
1 Star
0%

Leave a Reply