Ssh – CopSSH control panel overwrites sshd_config

copsshssh

I'm testing an instance of CopSSH on my local machine to get ready to implement an SSH server that will allow our development team to start using Mercurial over SSH. The CopSSH control panel is a useful GUI to the SSH configuration, but it inserts a ForceCommand directive, depending on what kind of shell access the user is given. Unfortunately, this breaks remote commands.

I can easily edit sshd_config manually, and everything works great. But if I start up the CopSSH control panel at any time, it overwrites the config file, inserting ForceCommand and causing problems.

Is there a way to stop the control panel from doing this? Is there a backup 'default' of sshd_config that it uses to overwrite the current one, or is it hard coded an unchangeable?

Best Answer

I don't have a definitive answer, but I have spend a fair amount of time searching on this issue. AFAIK, if you use the CopSSH control panel, then you cannot manually edit the sshd_config. It does not appear to use a template that would allow you to make changes that would be used by the control panel.

So basically you have to accept what the CopSSH control panel does for you, or manually maintain your accounts, and all the configuration.