the server has disconnected with an error. server message reads: a protocol error occurred.chang of username or service not allowedroot, (root,ssh-con

#创建一个普通用户
useradd user1 #创建用户user1
passwd user1 *** #设置用户user1的密码
vi  /etc/password


#找到新建的user1
name:password:uid:gid:comment:home:shell
#更改uid为0
#重启ssh服务
service sshd restart

#直接赋予创建的用户root权限

useradd -u 0 -o -g 0 user1

#创建一个uid=0的用户user1
说明:
-u 0 就是建一个uid=0的帐号
-o (注意是字母o,不是数字0)就是允许使用重复的id号
-g 0 就是建一个gid=0的帐号


使用SercureCRT的时候,会提示:

the server has disconnected with an error. server message reads:
a protocol error occurred.chang of username or service not allowedroot, (root,ssh-connection)->(abc,ssh-connection)



如下图修改用户名为你新创建的用户名即可。


posted @ 2013-03-08 17:12  破军  阅读(12130)  评论(0编辑  收藏  举报