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)



如下圖修改用戶名為你新創建的用戶名即可。



免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM