1820260 Members
3011 Online
109622 Solutions
New Discussion юеВ

SSH error

 
SOLVED
Go to solution
Anthony khan
Frequent Advisor

SSH error

Hi Everyone,

I disable root for ssh so I add PermitRootLogin No in ssdh_config file but now I am getting the following error:

fatal: /usr/local/etc/sshd_config line 94: Bad yes/without-password/forced-commands-only/no argument: No

Is there any thing missing in order to disable root.


3 REPLIES 3
Steven Sim Kok Leong
Honored Contributor
Solution

Re: SSH error

Hi,

Can you show us the entire configuration file (with IP addresses and usernames sanitized)?

'PermitRootLogin specifies whether the root can log in using ssh2. May be set to
"yes", "nopwd", or "no".'

Hope this helps. Regards.

Steven Sim Kok Leong
Steven Sim Kok Leong
Honored Contributor

Re: SSH error

Hi,

Seems like you are using a different SSH distribution from mine.

The list of acceptable parameters are listed in the error message:

yes/without-password/forced-commands-only/no argument

Double-check that there are no extra characters on the line other than "no" after PermitRootLogin. Also giving it a shot, try "no" (in small letters).

Hope this helps. Regards.

Steven Sim Kok Leong
Anthony khan
Frequent Advisor

Re: SSH error

Thanks guys, the problem was small no and i was using "No"


Thanks