telnet login successful ,but ssh can not login

why I can login by telnet using root account
but when i use login by ssh using root account
it is not successful ,is it different password

i am sure ssh service is started

Can you please post the error messages that are presented by ssh? It would also be helpful if you could try the ssh with the -v option and post the output from that:

ssh -v -l root target-host-name

The output will probably have a clue as to what is broken.

Check for PermitRootLogin in your sshd_config.

1 Like