ssh stops listening when trying to configure sftp
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 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 On auth I can only see: Code:
Received signal 15; terminating. |
Make sure there are not any problems with the SSH server's configuration. You might have the SFTP subsystem defined twice by accident or something else wrong:
Code:
sudo /usr/sbin/sshd -T |
It was a silly mistake, but only pointed out by sshd -T command.
Quote:
I placed the directive about the "Match..." line and it works as expected. I'm just surprised that ssh didn't say anything about it. Maybe because it needed to keep the session going (as I was connected to the ssh). Thanks! Works fine now. [later: ] I ended the match block with "Match all", as suggested by someone. I'm not 100% sure this is going to do the trick, i.e. work as expected, but ssh does restart properly. |
All times are GMT -5. The time now is 02:40 AM. |