[GH-ISSUE #22] Ubuntu 16.04 SSHD Config error #6

Closed
opened 2026-03-03 13:58:14 +03:00 by kerem · 1 comment
Owner

Originally created by @jasonmcintosh on GitHub (Mar 28, 2018).
Original GitHub issue: https://github.com/konstruktoid/hardening/issues/22

Line 22:

sed -i 's/.*Subsystem sftp.*/Subsystem sftp \/usr\/lib\/ssh\/sftp-server -f AUTHPRIV -l INFO/' "$SSHDFILE"

On ubuntu 16.04 (not checked current) that should be openssh not ssh.
sed -i 's/.*Subsystem sftp.*/Subsystem sftp \/usr\/lib\/openssh\/sftp-server -f AUTHPRIV -l INFO/' "$SSHDFILE"

Originally created by @jasonmcintosh on GitHub (Mar 28, 2018). Original GitHub issue: https://github.com/konstruktoid/hardening/issues/22 Line 22: ``` sed -i 's/.*Subsystem sftp.*/Subsystem sftp \/usr\/lib\/ssh\/sftp-server -f AUTHPRIV -l INFO/' "$SSHDFILE"``` On ubuntu 16.04 (not checked current) that should be openssh not ssh. ``` sed -i 's/.*Subsystem sftp.*/Subsystem sftp \/usr\/lib\/openssh\/sftp-server -f AUTHPRIV -l INFO/' "$SSHDFILE"```
kerem closed this issue 2026-03-03 13:58:14 +03:00
Author
Owner

@konstruktoid commented on GitHub (Mar 28, 2018):

Thanks @jasonmcintosh, the path was incorrect for all versions.
Fixed in github.com/konstruktoid/hardening@e2abd77af5

<!-- gh-comment-id:376797844 --> @konstruktoid commented on GitHub (Mar 28, 2018): Thanks @jasonmcintosh, the path was incorrect for all versions. Fixed in https://github.com/konstruktoid/hardening/commit/e2abd77af5f411f400a378a623c7dac2d0255b24
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/hardening#6
No description provided.