What is SFTP?
SFTP is a well known Secure File Transfer Protocol among IT folks and developers, used for integration and automation purposes. Part of its charm is that it enables remote access and file transfer within or between organizations, including the accessing, transferring and managing of files over a reliable data stream.
What does "mapping a drive" mean?
Drive mapping provides a shortcut to access a network resource, through the assignment of a drive letter to a remote share. The resource is stored on a different device, while behaving as any other local hard drive file. To access it, you can simply select a local drive from Windows Explorer and the resource will appear in My Computer and Windows Explorer.
Why should I map SFTP as a drive on Windows 11?
Mapping SFTP as a drive allows you to work with a remote file system as if it were a local disk drive, eliminating the nuisance of working with files stored on remote servers by enabling you to access them as if they were on your computer quickly and easily.
Mapping 101
Don't have an SFTP server? Set one up quickly with SFTP To Go.
- Install the latest version of WinFsp. Download the .msi file from here and then open it to install.
- Install the latest version of SSHFS-Win. Download the .msi file that is compatible with your Windows installation (32 or 64 bit) and then open it to install.
- We also recommend installing SSHFS-Win manager. It lets you easily manage one or more connections as well as create a connection using private/public key authentication. Download and run the .exe file from here to install.
Now that you’ve got all of the required foundations laid out, you can start mapping your SFTP servers as Windows drives.
If you haven’t installed SSHFS-Win Manager, follow these steps to map your SFTP server using user/password authentication:
- Open your Windows Explorer and right click
This PC
.
-
Click Map network drive... and in the dialog that opens, choose your drive letter.
-
In the folder input, type your user name and host name in the following pattern:
\\sshfs\[sftpuser]@[sftphost]
.
For example:\\sshfs\mary@companysftp.com
.
- Click
Finish
and in the next dialog enter your password. - The new drive letter should now show up in your Windows Explorer and you can use it to access your SFTP server.
If you’d like to use private/public key authentication, we recommend following these steps with SSHFS-Win Manager:
- Open SSHFS-Win manager and add a new connection by clicking
Add Connection
, entering all of the required connection details. Then, clickSave
.
- Click the connection to start it.
- If the connection doesn’t start and there are no error messages, click
Settings
and ensure that the path to SSHFS Binary is set correctly. Continue to try starting the connection again.
Unmapping SFTP on Windows
- Open your Windows Explorer.
- Right click your mapped drive and click
disconnect
.
And you're done! Fairly easy, right? Now go on and enjoy your easy access to files hosted on SFTP servers!
Post photo by Timo Wielink on Unsplash