Bug 2960 - Send a message to syslog when "ForceCommand internal-sftp" is used and a ssh connection is dropped
Summary: Send a message to syslog when "ForceCommand internal-sftp" is used and a ssh ...
Status: CLOSED FIXED
Alias: None
Product: Portable OpenSSH
Classification: Unclassified
Component: sftp-server (show other bugs)
Version: 7.9p1
Hardware: Other Linux
: P5 enhancement
Assignee: Damien Miller
URL:
Keywords: patch
Depends on:
Blocks: V_8_0
  Show dependency treegraph
 
Reported: 2019-01-31 23:48 AEDT by Jakub Jelen
Modified: 2021-04-23 14:56 AEST (History)
2 users (show)

See Also:


Attachments
proposed patch (391 bytes, patch)
2019-01-31 23:48 AEDT, Jakub Jelen
no flags Details | Diff
include connection endpoint in log message (872 bytes, patch)
2019-02-08 15:15 AEDT, Damien Miller
dtucker: ok+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jakub Jelen 2019-01-31 23:48:18 AEDT
Created attachment 3232 [details]
proposed patch

It is useful, not only for the connecting user, but also for the system administrator to see among the lines in the server log information about the reason why the connection was dropped.
Comment 1 Damien Miller 2019-02-08 15:15:40 AEDT
Created attachment 3241 [details]
include connection endpoint in log message

IMO this would be more useful if it included the offending client's details.
Comment 2 Damien Miller 2019-02-10 22:52:01 AEDT
This has been committed and will be in openssh-8.0
Comment 3 Damien Miller 2021-04-23 14:56:29 AEST
closing resolved bugs as of 8.6p1 release