In the SECURECRT remote tool, when using Roto login, there is a
The server has a disconnected with an error. Server Message READS:A protocol error occurred. Change of username or service not allowed: (shang1,ssh-connection)-(shang,ssh-connection)
This is because the root account login is disabled in sshd.
To modify the sshd configuration file:
Vim/etc/ssh/sshd_config
Put Permitrootlogin No
Change to Permitrootlogin Yes
The root account allows you to log in remotely.
Or create a new account locally with the root account, such as
Useradd user1
passwd user1
Then give a sudo permission
Vim/etc/sudoers
Find root all= (all) all
Copy this line directly, modify root to User1, paste to the bottom of this line, all is unqualified permission.
User1 all= (All) all
Using User1 telnet, and sudo su-, enter the password to use root privileges.
This article is from the "Study" blog, make sure to keep this source http://wxpan.blog.51cto.com/4861826/1677103
Sshd Problem: A protocol error occurred. Change of username or service not allowed