How do I log all outgoing ssh connections from my server ?

Solution Unverified - Updated -

Issue

  • We would like to keep track of the outgoing ssh connections as well in order to link who is actually logging in on a different server. How can this be achieved on RHEL5+ ?
  • How to trap all outgoing ssh connections ?
  • Are there any directives in ssh_config file so that I may log all the outgoing ssh connections in one file ?

Environment

  • Red Hat Enterprise Linux 5
  • Red Hat Enterprise Linux 6
  • ssh

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content