zoukankan      html  css  js  c++  java
  • the server has disconnected with an error. server message reads: a protocol error occurred.chang of username or service not allowedroot, (root,sshcon

    #创建一个普通用户
    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)



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


  • 相关阅读:
    Matrix-tree 定理的一些整理
    多项式
    多项式
    vijos 1641 Vs Snowy
    noip 提高组 2010
    军训有感
    我的将军啊
    洛谷 P3302 [SDOI2013]森林
    关于线段树
    关于KMP
  • 原文地址:https://www.cnblogs.com/potu/p/2950292.html
Copyright © 2011-2022 走看看