I have a network device (a scanner) that can scan to SFTP. Unfortunately, it's giving me problems. I can see from the SSH logs that it's able to login, but I can't see what it's doing after that. I think it's running into a file or directory not found situation. The device has no verbose logging capability. So I have to do this on the server somehow.
How can I monitor/log what happens after it has successfully establish an SSH connection?