I'm running Ubuntu 14.04.5. I'm trying to configure some sftp restrictions (1:6.6p1-2ubuntu2.10). I've added this to the ssh config file:
Code:
Subsystem sftp internal-sftp
Match Group sftp
ChrootDirectory "/var/www"
ForceCommand internal-sftp
AllowTcpForwarding no
X11Forwarding no
If I restart the ssh service (while connected through ssh), the ssh process is seemingly restarted (the current ssh connection is, of course, being kept alive), but it isn't listening to its port.
If I delete the abovementioned code (with the exception of the first line - i.e. sftp by itself works as it is), it works as expected and when I restart the ssh service, the PID is also mentioned:
Code:
ssh stop/waiting
ssh start/running, process 1597
I don't know what I'm misconfiguring. I can't see any relevant logs in auth.log of rsyslog.
On auth I can only see:
Code:
Received signal 15; terminating.
Server listening on 0.0.0.0 port 2223.
That happens when sftp chroot/matchgroup is not configured. Otherwise, it just says "Received signal 15; terminating".