Skip to content
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 activate sftp-server.log #1193

Closed
Lnemirage opened this issue Jun 20, 2018 · 6 comments
Closed

How to activate sftp-server.log #1193

Lnemirage opened this issue Jun 20, 2018 · 6 comments

Comments

@Lnemirage
Copy link

I tried to activate sftp logs as in the previous version but I didn't find sftp-server.log

sshd_config :
Subsystem sftp D:\Openssh\sftp-server.exe -l INFO

how to do it?

thanks

@manojampalam
Copy link
Contributor

@thezim
Copy link

thezim commented Jun 21, 2018

#834 might have some useful info.

@Lnemirage
Copy link
Author

Now, I'm able to activate sftp logs on local file with :
sshd_config : Subsystem sftp sftp-server.exe -l INFO -f LOCAL0
and adding write permission to C:\ProgramData\ssh\logs for the connecting user

but I'm still unable to have the sftp logs into windows event-viewer

@manojampalam
Copy link
Contributor

are you hitting this #1174

@Lnemirage
Copy link
Author

thanks, I can see the sftp-logs into windows event viewver with this configuration :
sshd_config :
SyslogFacility AUTH
Subsystem sftp sftp-server.exe -l INFO -f AUTH
and adding the connecting user to the local Administrator group

but I can't give Administrator permissions to this user permanently for security reason.

how to give the necessary permission to this user to use windows event viewver without adding it as Administrator group?

@manojampalam
Copy link
Contributor

For now, I recommend turning on file based logging and give write permissions on sshd.log to your non-admin user.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants