the server has disconnected with an error. server message reads: a protocol error occurred.chang of username or service not allowedroot, (root,ssh-con
2013-03-08 17:12
891 查看
#创建一个普通用户
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)
如下图修改用户名为你新创建的用户名即可。
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)
如下图修改用户名为你新创建的用户名即可。
相关文章推荐
- A protocol error occurred. Change of username or service not allowed: (root,ssh-connection) -> (zoujiaqing,ssh-connection)
- 禁止root远程登录 sshd问题:A protocol error occurred. Change of username or service not allowed
- sshd问题:A protocol error occurred. Change of username or service not allowed
- sshd问题:A protocol error occurred. Change of username or service not allowed
- A protocol error occurred. Change of username or service not allowed
- Error message when you try to install a SQL Server 2005 service pack or a SQL Server 2005 hotfix package: "Error 29528. The setup has encountered an unexpected error while Setting Internal Properties"
- Compiler Error Message: CS0234: The type or namespace name 'BorderDetails' does not exist in the class or namespace 'Infragistics.WebUI.Shared' (are you missing an assembly reference?)
- [转] --- Error: “A field or property with the name was not found on the selected data source” get only on server
- Understanding the error message: “Login failed for user ''. The user is not associated with a trusted SQL Server connect
- Error creating bean with name 'userService': Injection of resource methods failed; nested exception is org.springframework.beans
- an out of memory error has occurred.Consult the 'running eclipse' section of the read me file for...
- An error occurred during the execution of xp_cmdshell. A call to 'LogonUserW' failed with error code: '1385'
- The problem of the user is not associated with a trusted sql server connection 混合登录选项设置的问题
- Unable to open Web project 'ProjectName'. An HTTP error occurred. The server ......
- Error message when you try to modify or to delete an alternate access mapping in Windows SharePoint Services 3.0: "An update conflict has occurred, and you must re-try this action"
- Bean property 'productService' is not writable or has an invalid setter method. Does the parameter t
- OpenSSL::SSL::SSLError: hostname was not match with the server certificate
- SQL - A connection was successfully established with the server, but then an error occurred during the pre-login handsha
- ssh: Could not resolve hostname github.com: Name or service not known; fatal: The remote end hung up
- Bean property 'address' is not readable or has an invalid getter method: Does the return type of th