New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to Change Default SFTP location in Open SSSH windows #730
Comments
In unix world this is accomplished with the "ChrootDirectory". ChrootDirectory is not yet supported in windows... Its a duplicate of |
Is there any other way to achieve this |
As far as I know, we don't have.. |
You can try to edit sshd_config, then locate the line where sftp-server is call and add command line argument to the exe --> sftp-server.exe -C C:\MyDirectory |
Hi,
Thanks for the reply
I have added the argument like below in sshd.conf file but it is not
working. let me know if i miss anything.
sftp sftp_server.exe -C C:\Myftp
…On Tue, Oct 3, 2017 at 2:04 PM, gregmich29 ***@***.***> wrote:
You can try to edit sshd_config, then locate the line where sftp-server is
call and add command line argument to the exe --> sftp-server.exe -C
C:\MyDirectory
It works fine for me.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#730 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AGzh2imUeocaPEtRQkrbE3_eup81pHGLks5sofGngaJpZM4NkJOv>
.
--
Karthick S
|
@karthick1409 you can try |
I have also found this to be working |
How to chnage the long path(having space in path).i.e D:\FTP Sites\SFTP |
Any help |
Did you try using double quotes? |
see #784 the last response has a workaround for your problem. |
Reading the sftp-server man , and just like it was already mentioned -d should work. "-d start_directory This worked for me: sftp sftp-server.exe -d "D:\someFolder\anotherFolder" |
Dear all, I have seam issue when I log in on OpenSSH server I can see all root directory, kindly I need to make specific root for this server |
For all users who had a problem with this solution not working, please note that you may need to edit this file:
Previously I was making changes to configuration stored in |
Somebody assist me. I have tried all the solutions provided on this trend. my question is should i remove the Subsystem here is my config : override default of no subsystemsSubsystem sftp sftp-server.exe -d "C:\SFTPRecording" Example of overriding settings on a per-user basis#Match User anoncvs AllowTcpForwarding noPermitTTY noForceCommand cvs serverForceCommand internal-sftp Match User RecUser1 Match Group administrators |
@arreisGit |
added below into C:\ProgramData\ssh\sshd_config work for me, the only thing is need restart service "OpenSSH SSH Server" Match User sftpuser |
On Windows work for me like this: Subsystem sftp sftp-server.exe -d /C:/SFTPRecording |
I only changed the C:\ProgramData\ssh\sshd_config file: Changing the line: ChrootDirectory "C:\Mydirectory" and restarting the service in PowerShell with "Restart-Service sshd" Worked perfectly. |
i have installed "OpenSSH for Windows" version for configuring SFTP in windows server 2012. i can able to connect using sftp connection. But by default i am getting user home directory like c:\user\username. But i need one common directory as default location.
The text was updated successfully, but these errors were encountered: