Sshd Problem: A protocol error occurred. Change of username or service not allowed

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.