Then I do not see when entries in the log file corresponds to the actual test with sudo. Anyway, I can hardly help you with setting up your SSH server.
- martin
Before posting, please read how to report bug or request support effectively.
Bug reports without an attached log file are usually useless.
Apr 20 12:32:10 s1 sshd[9356]: Accepted password for user from 12.34.56.78 port 63457 ssh2
Apr 20 12:32:10 s1 sshd[9358]: (pam_unix) session opened for user user by (uid=0)
Apr 20 12:32:10 s1 sudo: user : TTY=unknown ; PWD=/home/user ; USER=root ; COMMAND=/usr/bin/sftp
Apr 20 12:32:10 s1 sshd[9358]: (pam_unix) session closed for user user
Apr 20 12:32:48 s1 sshd[9378]: subsystem request for sftp
Apr 20 12:55:56 s1 sshd[14453]: Accepted password for user from 12.34.56.78 port 63815 ssh2
Apr 20 12:55:56 s1 sshd[14455]: (pam_unix) session opened for user user by (uid=0)
Apr 20 12:55:56 s1 sshd[14455]: subsystem request for sftp
Apr 20 12:55:56 s1 sshd[14455]: error: subsystem: cannot stat internal-sftp: No such file or directory
Apr 20 12:55:56 s1 sshd[14455]: subsystem request for sftp failed, subsystem not found
Apr 20 12:55:56 s1 sudo: user : TTY=unknown ; PWD=/home/user ; USER=root ; COMMAND=/bin/bash
Apr 20 12:56:00 s1 sshd[12526]: (pam_unix) session closed for user user
Apr 20 12:56:00 s1 sshd[14460]: Accepted password for user from 12.34.56.78 port 63816 ssh2
Apr 20 12:56:01 s1 sshd[14462]: (pam_unix) session opened for user user by (uid=0)
Apr 20 12:56:01 s1 CRON[14482]: (pam_unix) session opened for user root by (uid=0)