GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Determine protocol for login
Operating System - HP-UX
1850368
Members
2966
Online
104054
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Knowledge Base
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Forums
Discussions
back
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
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
12-21-2005 08:54 AM
12-21-2005 08:54 AM
Determine protocol for login
I know someone asked something similar to this a month or two ago, but I haven't been able to find the thread and the answers, as I recall, weren't complete. The last command gives most of the information, though distinguishing between ssh, login (rlogin), and shell (remsh) appears to require confirming in syslog which it was. Sshd will have definite entries there. Login will also if you have -l option on inetd. Shell appears to not log to syslog even with the -l option on inetd. Sftp isn't logged to wtmp, however, so last does not see these logins. Is there a way to get these logins logged to wtmp also? (I'm guessing if there is, it's in sshd_config, but nothing jumped out at me as the answer.)
Also, how does dtlogin log accesses? Is it distinguishable from any of the other login methods?
Also, how does dtlogin log accesses? Is it distinguishable from any of the other login methods?
--
Jeff Traigle
Jeff Traigle
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-21-2005 09:10 AM
12-21-2005 09:10 AM
Re: Determine protocol for login
Shalom Jeff,
If sftp is done after exchaning public keys the key exchange will show up in syslog.
Though it varies product to product, many daemons configured in inetd can use -l enhanced logging.
Interestingly enough my sshd logins do show up in syslog and all I did was change the inetd run parameter to add -l.
At least thats all I remember doing.
SEP
If sftp is done after exchaning public keys the key exchange will show up in syslog.
Though it varies product to product, many daemons configured in inetd can use -l enhanced logging.
Interestingly enough my sshd logins do show up in syslog and all I did was change the inetd run parameter to add -l.
At least thats all I remember doing.
SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-21-2005 10:58 AM
12-21-2005 10:58 AM
Re: Determine protocol for login
Jeff,
ssh can be configured to log access to syslog thru the sshd_config file and the logging is controlled by two parameters i.e. SyslogFacility and LogLevel. The defaults (which can be customized) are:
#SyslogFacility AUTH
#LogLevel INFO
hope it helps!
ssh can be configured to log access to syslog thru the sshd_config file and the logging is controlled by two parameters i.e. SyslogFacility and LogLevel. The defaults (which can be customized) are:
#SyslogFacility AUTH
#LogLevel INFO
hope it helps!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-21-2005 12:32 PM
12-21-2005 12:32 PM
Re: Determine protocol for login
Yes. Those are the default settings. I notice, however, that while the ssh connections are logged to both syslog and wtmp, sftp connections are only logged to syslog. In trying to determine how the accesses are being made, I was hoping to make things a bit easier by being able to use last to get the last access timestamp and origin and then determine through syslog what protocol was actually used since only telnet, rexec, and ftp are uniquely identified by last. Since sftp isn't logging to wtmp, it makes things a bit more complicated to determine the protocol of the last system access.
--
Jeff Traigle
Jeff Traigle
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2026 Hewlett Packard Enterprise Development LP