And moreover, for the client side - scp will not use stdout for its messages, it will use the tty device instead.

SSH is a protocol that lets you login into the remote machine just like you would login on a local machine.

So, bad enough - you can't log relevant information about scp at the server level. This file should be writable by root only, but it is recommended (though not necessary) that it be world-readable. /usr/sbin/sshd . For example, a user on one host can log in to another system without using a password because the sshd service can be configured to use alternate authentication techniques such as exchanging shared-key information. A script or unit file is installed too, which you can use to start, stop, restart, and find the status of the sshd service. H ow do I restart SSH service under Linux or UNIX operating systems? Just do a docker exec gogs-container-name syslogd, you will then be able to get sshd log inside /var/log/messages..

One can exchange files using a secure channel over an insecure network such as the Internet. The sshd (Secure Shell Daemon) service is part of the OpenSSH implementation for Linux that provides authenticated, end-to-end encrypted networked communication.
I use Mina 2.0.0-M5 for it.

The sshd service starts automatically on Linux after installation and typically enabled and installed during server set up. When SSH server runs, it will produce the log messages in sshd.log to describe what is going on. To get access to sshd log, you will need to activate syslogd (not launched by default).
Nothing special on server side, just: sshd.setShellFactory(new ProcessShellFactory(new String[]{"/bin/bash", "-i", "-l"})); Here is a full log from server: - log4j.properties sshd rereads its configuration file when it receives a hangup signal, SIGHUP , by executing itself with the name and options it was started with, e.g., /usr/sbin/sshd .

Nothing happens after I've got shell prompt. If for example start-stop-daemon expected you to put a daemon (for example sshd) you might try: start-stop-daemon sshd >/var/log/sshd_log 2>&1 * /var/log/sshd/sshd.log. OpenSSH is a derivative of the original and free ssh 1.2.12 release by Tatu Ylonen. Currently working on a way to print sshd logs inside docker logs, that why syslogd was not launched by default.I should had it for now.

sshd rereads its configuration file when it receives a hangup signal, SIGHUP , by executing itself with the name and options it was started with, e.g. my bad. sftp-server(8), sshd(8) AUTHORS.