Sunday, October 6, 2024
23.2 C
Islamabad
HomeTechnologyChanging SSH Default Directory for Windows SFTP/SSH server

Changing SSH Default Directory for Windows SFTP/SSH server

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 directoryssh 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
Sami Ahmed Abbasihttps://informaticblogs.com
Freelancer | Wordpress Expert | Blogger
RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.

- Advertisment -

Most Popular

Recent Comments