- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Re: SSH logging question
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-06-2004 04:34 AM
07-06-2004 04:34 AM
Is there anyway I can find out what username the failed login tried to use?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-06-2004 09:17 AM
07-06-2004 09:17 AM
Re: SSH logging question
What versions are you running?
When I give a bad password for an attempted SSH login, I get a "remote interative login faulure" audit with provess name "SSH server 1651" and the target username. I also get a SYSUAF record modification, incrementing login failures.
Make sure you have auditing (and alarms?) enabled for AUTHORIZATION and LOGFAIL=ALL.
Also make sure you have the latest version of SSH.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-06-2004 09:45 AM
07-06-2004 09:45 AM
Re: SSH logging question
Here is what our monitoring looks like
System security audits currently enabled for:
Audit: illformed
Logfailure: batch,dialup,local,remote,network,subprocess,detached
I am not sure exactly why audit: is showing up illformed.
I have also attached the text from a failed login.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-06-2004 11:28 AM
07-06-2004 11:28 AM
Re: SSH logging question
I'm using an older version of SSH. It looks like they've changed the way audits work.
I'd suggest you enable a few more events:
$ SET AUDIT/ALARM/ENABLE=(authorization, -
breakin:all,login=all,logout=all)
Note that this will generate ALARMS to OPCOM terminals enabled for SECURITY. If you want messages written to the audit journal as well use:
$ SET AUDIT/AUDIT/ENABLE=
So, with those alarms enabled, please retry your login attempt, and catch the output of both the login itself, and any audit alarms that are generated.
You may not want to leave all those alarms enabled, or audit them all, but you may need to leave some of them turned on to get the exact information you want.
The "Audit: illformed:" means you will generate an audit message if the audit server receives an illformed request. This might indicate an attempt to confuse or crash the audit server, or it may be buggy software sending bad audit messages.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-06-2004 11:12 PM
07-06-2004 11:12 PM
Solutionno change of the way audits work
$ set audit/audit/enable=logfail=remote
--> login failures of set host and telnet
$ set audit/audit/enable=logfail=network
--> login failures of ssh
$ set audit/audit/enable=author
--> sysuaf modification of login fail count
Having set up this you get 2 audit entries containing all needed information: remote node, remote username, local username. PID/processname are the same in both event entries.
That's the only way to find out what username the failed login tried to use due to the way SSH is implemented on VMS.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-07-2004 12:51 AM
07-07-2004 12:51 AM
Re: SSH logging question
logfail=remote,network were already enabled. I entered the "enable=author" command too.
However, I am only getting 1 audit entry on failures that I can see and it stills lists the username as tcpip$ssh, remote username as SSH_0A03044B, and the process name as TCPIP$SS_BG3204. I'm not exactly sure how I can use this information to find out the "real username".
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-07-2004 02:16 AM
07-07-2004 02:16 AM
Re: SSH logging question
I have ssh version 2.4.1 on VMS 7.3 and have exactly the same result as you have.
You can use accounting to find the remote username (using part of ssh_pid of the remote username).
Bad implementation ?
Do ssh "-V" to get your version.
Wim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-07-2004 02:45 AM
07-07-2004 02:45 AM
Re: SSH logging question
I have attached the text from my debug run.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-07-2004 02:59 AM
07-07-2004 02:59 AM
Re: SSH logging question
You are missing some part.
http://h71000.www7.hp.com/openvms/products/ssh/ssh.pdf
I don't get the message but I played with the config at the time (and my memory fails for the details of it).
Wim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-07-2004 09:31 AM
07-07-2004 09:31 AM
Re: SSH logging question
It sounds like something has changed between the version I'm running (old!) and your version. When you eventually log in successfully, are the failed logins counted in the login message "nn login failures since last successful login"?
If the Audit messages aren't giving enough information, please log a case against your service contract and request an elevation to engineering.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2004 08:49 PM
07-08-2004 08:49 PM
Re: SSH logging question
W8$
%%%%%%%%%%% OPCOM 7-JUL-2004 11:16:15.07 %%%%%%%%%%%
Message from user AUDIT$SERVER on MYNODE
Security alarm (SECURITY) and security audit (SECURITY) on MYNODE, system id: 15
20
Auditable event: System UAF record modification
Event time: 7-JUL-2004 11:16:15.07
PID: 00000142
Process name: TCPIP$SS_BG4560
Username: TCPIP$SSH
Process owner: [TCPIP$AUX,TCPIP$SSH]
Image name: DSA800:[SYS0.SYSCOMMON.][SYSEXE]TCPIP$SSH_SSHD2.EXE
Object class name: FILE
Object name: SYS$COMMON:[SYSEXE]SYSUAF.DAT;1
User record: LOCALUSER
Flags: New: DEFCLI,bit_31
Original: DEFCLI,bit_31
Login failures: New: 19
Original: 18
Posix UID: -2
Posix GID: -2 (%XFFFFFFFE)
W8$
%%%%%%%%%%% OPCOM 7-JUL-2004 11:16:15.13 %%%%%%%%%%%
Message from user AUDIT$SERVER on MYNODE
Security alarm (SECURITY) and security audit (SECURITY) on MYNODE, system id: 15
20
Auditable event: Network login failure
Event time: 7-JUL-2004 11:16:15.13
PID: 00000142
Process name: TCPIP$SS_BG4560
Username: TCPIP$SSH
Remote node fullname: SSH_PASSWORD:DS012345.DOM.COMPANY.COM
Remote username: REMUSER
Status: %LOGIN-F-NOTVALID, user authorization failure
W8$
it's also ssh 2.4.1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-09-2004 12:47 AM
07-09-2004 12:47 AM
Re: SSH logging question
Thanks all for your help