Logging Chrooted Users SFTP Activity

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP












0















So I'm having the issue where I can't seem to log users SFTP activity. I can see when a new session was created by a specific user, but can't see where they've been or what they may have dropped within the directory.



My SFTP users are all chrooted in the same place (/data/SFTP/) - each one does not have a specific folder.



My directory looks like this:



/data/SFTP/SFTPHome



Every SFTP user has access to the /SFTPHome directory, but not its parent directories.




/etc/ssh/sshd_config:



Subsystem sftp internal-sftp -f AUTH -l VERBOSE



Match Group SFTPUsers
PasswordAuthentication no
X11Forwarding no
AllowTcpForwarding no
ChrootDirectory /data/SFTP/
ForceCommand internal-sftp -f AUTH -l VERBOSE



/etc/rsyslog.conf:



# Logs all SFTP activity
auth.* /var/log/sftp.log


With this in place, the only information that fills the /var/log/sftp.log is



Feb 13 16:05:59 Host_SFTP systemd-logind: New session 30 of user JOHNSON.
Feb 13 16:06:30 Host_SFTP systemd-logind: Removed session 30.
Feb 13 16:09:17 Host_SFTP sshd[7126]: rexec line 63: Deprecated option RhostsRSAAuthentication
Feb 13 16:09:32 Host_SFTP systemd-logind: New session 31 of user JOHNSON.
Feb 13 16:09:32 Host_SFTP systemd-logind: Removed session 31.
Feb 13 16:14:17 Host_SFTP sshd[7154]: rexec line 63: Deprecated option RhostsRSAAuthentication
Feb 13 16:14:24 Host_SFTP sshd[7156]: rexec line 63: Deprecated option RhostsRSAAuthentication
Feb 13 16:14:32 Host_SFTP systemd-logind: New session 32 of user JOHNSON.
Feb 13 16:14:57 Host_SFTP systemd-logind: Removed session 32.


How can I set this up so I can monitor where and what files are being placed within the SFTP directory?










share|improve this question






















  • Try log level DEBUG3 instead of VERBOSE. If you still aren't getting anything, there may be a problem logging from inside the chroot jail.

    – Kenster
    Feb 14 at 0:14











  • Just tried that - no changes. I have a feeling that the issue has to do with its logging inside the chroot jail, but at that point I'm a bit lost and not sure what I should do..

    – veanome
    Feb 14 at 0:56















0















So I'm having the issue where I can't seem to log users SFTP activity. I can see when a new session was created by a specific user, but can't see where they've been or what they may have dropped within the directory.



My SFTP users are all chrooted in the same place (/data/SFTP/) - each one does not have a specific folder.



My directory looks like this:



/data/SFTP/SFTPHome



Every SFTP user has access to the /SFTPHome directory, but not its parent directories.




/etc/ssh/sshd_config:



Subsystem sftp internal-sftp -f AUTH -l VERBOSE



Match Group SFTPUsers
PasswordAuthentication no
X11Forwarding no
AllowTcpForwarding no
ChrootDirectory /data/SFTP/
ForceCommand internal-sftp -f AUTH -l VERBOSE



/etc/rsyslog.conf:



# Logs all SFTP activity
auth.* /var/log/sftp.log


With this in place, the only information that fills the /var/log/sftp.log is



Feb 13 16:05:59 Host_SFTP systemd-logind: New session 30 of user JOHNSON.
Feb 13 16:06:30 Host_SFTP systemd-logind: Removed session 30.
Feb 13 16:09:17 Host_SFTP sshd[7126]: rexec line 63: Deprecated option RhostsRSAAuthentication
Feb 13 16:09:32 Host_SFTP systemd-logind: New session 31 of user JOHNSON.
Feb 13 16:09:32 Host_SFTP systemd-logind: Removed session 31.
Feb 13 16:14:17 Host_SFTP sshd[7154]: rexec line 63: Deprecated option RhostsRSAAuthentication
Feb 13 16:14:24 Host_SFTP sshd[7156]: rexec line 63: Deprecated option RhostsRSAAuthentication
Feb 13 16:14:32 Host_SFTP systemd-logind: New session 32 of user JOHNSON.
Feb 13 16:14:57 Host_SFTP systemd-logind: Removed session 32.


How can I set this up so I can monitor where and what files are being placed within the SFTP directory?










share|improve this question






















  • Try log level DEBUG3 instead of VERBOSE. If you still aren't getting anything, there may be a problem logging from inside the chroot jail.

    – Kenster
    Feb 14 at 0:14











  • Just tried that - no changes. I have a feeling that the issue has to do with its logging inside the chroot jail, but at that point I'm a bit lost and not sure what I should do..

    – veanome
    Feb 14 at 0:56













0












0








0








So I'm having the issue where I can't seem to log users SFTP activity. I can see when a new session was created by a specific user, but can't see where they've been or what they may have dropped within the directory.



My SFTP users are all chrooted in the same place (/data/SFTP/) - each one does not have a specific folder.



My directory looks like this:



/data/SFTP/SFTPHome



Every SFTP user has access to the /SFTPHome directory, but not its parent directories.




/etc/ssh/sshd_config:



Subsystem sftp internal-sftp -f AUTH -l VERBOSE



Match Group SFTPUsers
PasswordAuthentication no
X11Forwarding no
AllowTcpForwarding no
ChrootDirectory /data/SFTP/
ForceCommand internal-sftp -f AUTH -l VERBOSE



/etc/rsyslog.conf:



# Logs all SFTP activity
auth.* /var/log/sftp.log


With this in place, the only information that fills the /var/log/sftp.log is



Feb 13 16:05:59 Host_SFTP systemd-logind: New session 30 of user JOHNSON.
Feb 13 16:06:30 Host_SFTP systemd-logind: Removed session 30.
Feb 13 16:09:17 Host_SFTP sshd[7126]: rexec line 63: Deprecated option RhostsRSAAuthentication
Feb 13 16:09:32 Host_SFTP systemd-logind: New session 31 of user JOHNSON.
Feb 13 16:09:32 Host_SFTP systemd-logind: Removed session 31.
Feb 13 16:14:17 Host_SFTP sshd[7154]: rexec line 63: Deprecated option RhostsRSAAuthentication
Feb 13 16:14:24 Host_SFTP sshd[7156]: rexec line 63: Deprecated option RhostsRSAAuthentication
Feb 13 16:14:32 Host_SFTP systemd-logind: New session 32 of user JOHNSON.
Feb 13 16:14:57 Host_SFTP systemd-logind: Removed session 32.


How can I set this up so I can monitor where and what files are being placed within the SFTP directory?










share|improve this question














So I'm having the issue where I can't seem to log users SFTP activity. I can see when a new session was created by a specific user, but can't see where they've been or what they may have dropped within the directory.



My SFTP users are all chrooted in the same place (/data/SFTP/) - each one does not have a specific folder.



My directory looks like this:



/data/SFTP/SFTPHome



Every SFTP user has access to the /SFTPHome directory, but not its parent directories.




/etc/ssh/sshd_config:



Subsystem sftp internal-sftp -f AUTH -l VERBOSE



Match Group SFTPUsers
PasswordAuthentication no
X11Forwarding no
AllowTcpForwarding no
ChrootDirectory /data/SFTP/
ForceCommand internal-sftp -f AUTH -l VERBOSE



/etc/rsyslog.conf:



# Logs all SFTP activity
auth.* /var/log/sftp.log


With this in place, the only information that fills the /var/log/sftp.log is



Feb 13 16:05:59 Host_SFTP systemd-logind: New session 30 of user JOHNSON.
Feb 13 16:06:30 Host_SFTP systemd-logind: Removed session 30.
Feb 13 16:09:17 Host_SFTP sshd[7126]: rexec line 63: Deprecated option RhostsRSAAuthentication
Feb 13 16:09:32 Host_SFTP systemd-logind: New session 31 of user JOHNSON.
Feb 13 16:09:32 Host_SFTP systemd-logind: Removed session 31.
Feb 13 16:14:17 Host_SFTP sshd[7154]: rexec line 63: Deprecated option RhostsRSAAuthentication
Feb 13 16:14:24 Host_SFTP sshd[7156]: rexec line 63: Deprecated option RhostsRSAAuthentication
Feb 13 16:14:32 Host_SFTP systemd-logind: New session 32 of user JOHNSON.
Feb 13 16:14:57 Host_SFTP systemd-logind: Removed session 32.


How can I set this up so I can monitor where and what files are being placed within the SFTP directory?







linux centos logs chroot sftp






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Feb 13 at 21:33









veanomeveanome

83




83












  • Try log level DEBUG3 instead of VERBOSE. If you still aren't getting anything, there may be a problem logging from inside the chroot jail.

    – Kenster
    Feb 14 at 0:14











  • Just tried that - no changes. I have a feeling that the issue has to do with its logging inside the chroot jail, but at that point I'm a bit lost and not sure what I should do..

    – veanome
    Feb 14 at 0:56

















  • Try log level DEBUG3 instead of VERBOSE. If you still aren't getting anything, there may be a problem logging from inside the chroot jail.

    – Kenster
    Feb 14 at 0:14











  • Just tried that - no changes. I have a feeling that the issue has to do with its logging inside the chroot jail, but at that point I'm a bit lost and not sure what I should do..

    – veanome
    Feb 14 at 0:56
















Try log level DEBUG3 instead of VERBOSE. If you still aren't getting anything, there may be a problem logging from inside the chroot jail.

– Kenster
Feb 14 at 0:14





Try log level DEBUG3 instead of VERBOSE. If you still aren't getting anything, there may be a problem logging from inside the chroot jail.

– Kenster
Feb 14 at 0:14













Just tried that - no changes. I have a feeling that the issue has to do with its logging inside the chroot jail, but at that point I'm a bit lost and not sure what I should do..

– veanome
Feb 14 at 0:56





Just tried that - no changes. I have a feeling that the issue has to do with its logging inside the chroot jail, but at that point I'm a bit lost and not sure what I should do..

– veanome
Feb 14 at 0:56










0






active

oldest

votes











Your Answer








StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f500495%2flogging-chrooted-users-sftp-activity%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes















draft saved

draft discarded
















































Thanks for contributing an answer to Unix & Linux Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f500495%2flogging-chrooted-users-sftp-activity%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown






Popular posts from this blog

Peggy Mitchell

Palaiologos

The Forum (Inglewood, California)