-
Notifications
You must be signed in to change notification settings - Fork 782
create sshd.pid under logs folder by default #493
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
Comments
are you running in administrator mode? |
Yes, I do. I am not getting this error if I install v.0.0.1.0. |
I did have this same issue, with version .0.0.6.0 on a Win2k8 R2 64bit box. To get around the issue, in the sshd_config file i uncommented out the PidFile setting and replaced the ./sshd.pid, with "OpenSSH Install Path"\sshd.pid, and this corrected the issue, in my case it was installed under C: Programs, so the line in my config file looked something like this PidFile "C:\Program Files\OpenSSH\logs\sshd.pid", i believe you can specify it to write the pid file anywhere you wish, i just happened to put it in the logs folder with the rest of the logs files that get created. |
Hi AbhijitNagaraj, Can you please try and let us know if it works.. if not the share your configuration details like sshd_config, server configuration |
@bagajjal
I tried @pkt1237 solution but no luck. |
@nightwish47 ############################# Executing command: C:\\OpenSSH-Win64\\internal-sftp |
@pkt1237 Error seems random, so I'll keep monitoring. |
Can this be closed? |
I solved this by doing two things:
|
Keep in mind that this would allow the sshd service to write malicious code to it's bin folder. |
@GoateePFE - step2 is not required? sshd requires write permissions to only logs folder under C:\Program Files\OpenSSH folder. |
I followed the instructions which @GoateePFE listed but I am still getting: |
I had the same error. Solved by specifying the logs folder for the PID file in sshd_config. The configuration file should be changed to have that as default to solve this bug. |
@bagajjal So the question is, if PidFile is set as none, is there any impact? Current: PidFile C:/OpenSSH-Win64/sshd.pid |
No.. Pid file is used to store the process id, it is useful in automation to kill the spawned sshd process |
@bagajjal : Got it and will check on our side. Btw, although we received below message but target files are already transferred successfully. Related message: |
worked for me. |
I am getting the below error while installing OpenSSH Win64 0.0.7.0 on Windows 2012 R2 machine.
Couldn't Create pid file "./sshd.pid": Permission Denied
OpenSSH folder has full access,
Thanks,
Abhijit
The text was updated successfully, but these errors were encountered: