Visit The New, Modern Unix Linux Community

Cygwin_openssh logging

Thread Tools Search this Thread
Special Forums Windows & DOS: Issues & Discussions Cygwin_openssh logging
# 1  
Cygwin_openssh logging

Has anyone enabled Logging on cygwin_openssh? I uncommented Syslogfacility AUTH and loglevel VERBOSE in sshd_config, restarted but I still have not seen any logging???

Thanks in advance!

Moderator's Comments:
Mod Comment Please use CODE tags as required by forum rules!

Last edited by RudiC; 11-08-2016 at 08:47 AM.. Reason: Added ICODE tags.
# 2  
Do you see /etc/passwd in your cygwin file system? In other words, "who" does the authentication? Windows or cygwin? See the mkpasswd --help for more information.

mkpasswd indicates that, by default, Windows authenticates. You can force cygwin to authenticate. Never done it myself.
# 3  
yes / etc/passwd exists. and authenticates.

Last edited by MikeAdkins; 11-08-2016 at 08:53 AM..
# 4  
Ok try:
find /etc -name auth.log

You will see ssh logging there. Next question: what do you want to see? That can be more interesting....
# 5  
there is no /etc/ auth.log. so all I get is Windows Auditing which shows cyg_server failed.. doesnt really tell me who...
Do I need to touch it??
# 6  
I'm confused. What problem are you trying to solve?
For example from the cygwin forums:
Sshd (the daemon) logs by default on the Windows Event Application list, this
can be changed in the configuration (/etc/sshd_config) so that it can log using
syslog (a separate package not installed by default).

It also logs to wtmp, you can see who loged in and from where but entries are
not distinguishable from telnet/ftp/or any other logins.

One example of failed login in the event log (very common when somebody tries to
"break" into your computer) is (6 events):

The description for Event ID ( 0 ) in Source ( sshd ) cannot be found. The local
computer may not have the necessary registry information or message DLL files to
display messages from a remote computer. You may be able to use the /AUXSOURCE=
flag to retrieve this description; see Help and Support for details. The
following information is part of the event: sshd : PID 2868 : Invalid user lidia
If so, search the site for your problem. I am not an expert on cygwin authentication and logging. It is somewhat unlike other unixes.
# 7  
my problem too.. 20+ years in UNIX but cygwin_openssh on windows? LOL.. about 3 months...

Only logging I seem to be getting is thru Windows and again all I see there is cyg_server failed to login.. doesnt really say who the user is..

Previous Thread | Next Thread
Thread Tools Search this Thread
Search this Thread:
Advanced Search

Test Your Knowledge in Computers #889
Difficulty: Easy
In sed, the REGEX caret (^) matches the end of the line.
True or False?

10 More Discussions You Might Find Interesting

1. Windows & DOS: Issues & Discussions

Cygwin_openssh time stamps

I've installed cygwin_openssh on Windows 2012 R2 and it's working great. My issue is when a file is uploaded say from a different timezone, when it is uploaded, it doesnt pick up the sftp servers time.. Is there a way to fix that? i.e. When someone in PST uploads a file to this server in EST,... (0 Replies)
Discussion started by: MikeAdkins
0 Replies

2. Linux

Syslog not logging successful logging while unlocking server's console

When unlocking a Linux server's console there's no event indicating successful logging Is there a way I can fix this ? I have the following in my rsyslog.conf /var/log/secure /var/log/secure (1 Reply)
Discussion started by: walterthered
1 Replies

3. Post Here to Contact Site Administrators and Moderators

Constant Logging In (After Logging Out)

Hi Everyone. First, I want to thank all of you for letting me participate in this great group. I am having a bit of a problem. After I get an email from a responder, I login to make my reply. In the mean time I get another response by email from another member, I go to reply to them and I... (6 Replies)
Discussion started by: Ccccc
6 Replies

4. Programming


Hi How to manage logging in an application. Actually I am developing a Client-Server application in c/c++ and want to manage an optional logging in my application, but since prior I have never done ths activity. Plz guide me. thanks. (2 Replies)
Discussion started by: sumsin
2 Replies

5. UNIX for Dummies Questions & Answers

need more logging

Hi all! On our current Solaris 8 machine we only have "standard" logging configured, and now i need to put on more. What i specificly need is time in the logfiles. Ex. When a user is logging in, when a user makes it self SU. etc. Regards... dOzY (3 Replies)
Discussion started by: dozy
3 Replies

6. UNIX for Dummies Questions & Answers

Asking about logging in

Hi, just wriiten a sh script and as my script will try to log into another server to delete some files but when i run , it keeps on saying that my files do not exist. It seems to refer to my local directory instead. Below is my script : FTP_HOST=ip_number FTP_USER="user password" ... (1 Reply)
Discussion started by: blueberry80
1 Replies

7. UNIX for Dummies Questions & Answers

logging when someone changes to su

Is there a file that captures info whenever someone logs to su? i know it comes across as standard output on the server, but is it saved anywhere? Time and date info included?? thanks, kym (1 Reply)
Discussion started by: kymberm
1 Replies

8. Cybersecurity


is there a log/ how do i make a log that logs every packet inbound or outbound through my server? I want every packet or packet fragment to be logged that comes to my server. (5 Replies)
Discussion started by: The Fridgerator
5 Replies

9. Shell Programming and Scripting


G'day Just wondering if anyone out there knows how to log files, using the example I provided in the earlier message / question earlier today: :confused: If I was to backup a file, how could I setup a log file to record the filename, date (This one I've got figured), and that the file was... (4 Replies)
Discussion started by: Aussie_Bloke
4 Replies

10. UNIX for Dummies Questions & Answers


I have a SCO R5 Open Server Box running at a remote location, and from time to time it seems to "spontaneously" re-boot itself. Is there a specific log file that I can examine to see why the machine is doing this ? Any suggestions gratefully appreciated (1 Reply)
Discussion started by: pcs7088
1 Replies

Featured Tech Videos