Categories: Technology

Changing SSH Default Directory for Windows SFTP/SSH server

Share
Windows SFTP/SSH server’s default SSH directory can be modified to improve organisation and streamline file handling. Users can designate a certain folder as their first landing spot when connecting through the SSH or SFTP protocols by changing the default directory. Accessing commonly used files or folders no longer requires navigating across many directories. Users may improve productivity, optimise their work processes, and gain instant access to pertinent data as soon as they establish an SSH or SFTP connection to the server by setting a desired default directory.
The Steps to change the ssh default directory are.
  1. Open C:\ProgramData\ssh\sshd_config in notepad text editor.ssh directory
  2. Scroll down to the following line in the file:Subsystem sftp sftp-server.exe
  3. Replace sftp-server.exe with sftp-server.exe -d "c:\RootFolder", where "c:\RootFolder" is the root folder to load when connecting, so that the line looks like this: Subsystem sftp sftp-server.exe -d “c:\RootFolder”

You can use any drive & directory

The next time you open an SFTP connection to the server, you’ll be dropped into the folder you specified above.

To Access your files remotly anwhere for free. Check out this link https://informaticblogs.com/how-to-access-your-files-remotely-anywhere-for-free-using-port-forwarding/

Sami Ahmed Abbasi

Freelancer | Wordpress Expert | Blogger

Recent Posts

How to Add Admin User to WordPress Via MySQL Database using PhpMyAdmin

In certain scenarios where traditional user management techniques are ineffective or unavailable, adding an admin user using WordPress's database may…

10 months ago

How to access your files remotely anywhere for free using port forwarding

You can access your files remotely and circumvent the restrictions of a local network by using port forwarding. You can…

2 years ago

Top 5 Linux Distributions You Should try

Linux Introduction Linux is an open-source operating system kernel that is used as a foundation for many different operating systems,…

2 years ago

Linux OS | An Introduction to the Innovative, Customizable, and Secure Operating System

Introduction to Linux Linux is a free and open-source operating system that is based on Unix. It was first released…

2 years ago

Top Book Formats A author must know

What is book format? It is important for an author to know about book formats. A book format is how…

2 years ago

Hair Loss Prevention: 12 Tips to Help Save Your Hair

The foundation of many people's appearance and self-confidence is a full, healthy head of hair. It might be upsetting if…

2 years ago