- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: SSH: Capturing the Remote Server
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
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
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
11-17-2011 10:52 PM
11-17-2011 10:52 PM
SSH: Capturing the Remote Server
Hi All,
Our environment is implementing SSH. After we launch ssh (e.g. ssh user@host1), we login to the remote server.
Is there a way to capture the remote server which the user login to? is that available in log file(s). Thinking if we can enable one of sshd_config or ssh_config options to capture the remote server in log file.
Can anyone help me please?
Thanks and Regards,
Dewa
- Tags:
- ssh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-18-2011 07:54 AM
11-18-2011 07:54 AM
Re: SSH: Capturing the Remote Server
Not sure what you mean exactly. If you're wanting a message on the remote server saying user logged in via ssh, that's logged in /var/adm/syslog/syslog.log. It should also be logged in /var/adm/wtmp so you can see the login via the last(1) command although that will only show the pty used, not the protocol used to login.
Jeff Traigle
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-18-2011 09:10 AM
11-18-2011 09:10 AM
Re: SSH: Capturing the Remote Server
Hi Jeff,
Thanks. What I mean that I need to record the remote server. Let say I run command "ssh dewa@hostA", Is there any way to capture the information abt remote server (which is hostA) after calling ssh? For instance, the log file may contain "18 Nov 2011 10:05 ssh dewa hostA". So from that information I will get to know that ssh run by user dewa to remote server hostA.
Regards,
Dewa
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-18-2011 09:18 AM
11-18-2011 09:18 AM
Re: SSH: Capturing the Remote Server
I see. So you want the logging on the client side. The only logging I can think of that could occur on the client side is:
- the interactive shell history, which isn't centralized and can be wiped by the user
- via the auditing facility available in HP-UX, which eats up a lot of disk space from what I understand seeing other's posts over the years
- creating a wrapper script to log it somewhere that the user can write to, which necessarily means that the user can either wipe that log or find the actual binary to run directly
Option 2 is the surest bet.
Jeff Traigle
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-18-2011 04:20 PM
11-18-2011 04:20 PM
Re: SSH: Capturing the Remote Server
>So from that information I will get to know that ssh run by user dewa to remote server hostA.
The logon info is available on hostA with last(1), is that good enough? It includes the client servers name.