Logging ssh and scp

I want to log all ssh and scp sessions. How can I do that ? Appreciate any help.

Thanks !

Xserve, iMac G5, Power Mac G4, PowerBook G4, MacBook Pro, Mac OS X (10.4.6)

Posted on Jun 23, 2006 5:05 PM

Reply
3 replies

Sep 14, 2006 12:13 PM in response to Dave Walcott

Is there a way to increase the logging of ssh? I'm having an issue where I successfully log in, but immediately get kicked out with no errors displayed. The system log doesn't provide any clues, either...

Here is info from my client running in -vvv mode:

Last login: Thu Sep 14 11:24:49 2006 from <remote_host>
Welcome to Darwin!
debug1: client input_channelreq: channel 0 rtype exit-status reply 0
debug2: channel 0: rcvd eof
debug2: channel 0: output open -> drain
debug2: channel 0: obuf empty
debug2: channel 0: close_write
debug2: channel 0: output drain -> closed
debug2: channel 0: rcvd close
debug2: channel 0: close_read
debug2: channel 0: input open -> closed
debug3: channel 0: will not send data after close
debug2: channel 0: almost dead
debug2: channel 0: gc: notify user
debug2: channel 0: gc: user detached
debug2: channel 0: send close
debug2: channel 0: is dead
debug2: channel 0: garbage collecting
debug1: channel 0: free: client-session, nchannels 1
debug3: channel 0: status: The following connections are open:
#0 client-session (t4 r0 i3/0 o3/0 fd -1/-1 cfd -1)

debug3: channel 0: close_fds r -1 w -1 e 7 c -1
Connection to <server> closed.
debug1: Transferred: stdin 0, stdout 0, stderr 32 bytes in 0.1 seconds
debug1: Bytes per second: stdin 0.0, stdout 0.0, stderr 479.6
debug1: Exit status 1

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Logging ssh and scp

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.