Friday, April 27, 2012

SSH Match Errors

I could not start ssh after adding the following lines to my sshd_config:
Match Address 192.168.0.0/24 
GatewayPorts yes
The only clue are the following lines from syslog:
Apr 26 21:03:11 desktop kernel: [264746.428869] init: ssh main process (8486) terminated with status 255
Apr 26 21:03:11 desktop kernel: [264746.428942] init: ssh main process ended, respawning
Apr 26 21:03:11 desktop kernel: [264746.437024] init: ssh main process (8489) terminated with status 255
Apr 26 21:03:11 desktop kernel: [264746.437099] init: ssh main process ended, respawning
Apr 26 21:03:11 desktop kernel: [264746.446559] init: ssh main process (8492) terminated with status 255
Apr 26 21:03:11 desktop kernel: [264746.446627] init: ssh respawning too fast, stopped
After searching Google I found this bug report.
The final entry gave the solution in my case, the Match directive must come after the Subsystem directive. After moving things around, everything began to work again.

No comments:

Post a Comment