How to log connections made via SSH using port forwarding and X11 forwarding
Issue
- Our customer request to change "AllowTcpForwarding" to "yes" for port-forward in some circunstances, but we need to record logs.
- We need to enable "AllowTcpForwarding" and "X11Forwarding", but we have not identified how to log the authenticated user for audit purposes.
Environment
- Red Hat Enterprise Linux 7.3
- openssh-server
- audit
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
