配置新用户的SSH连接权限
配置新用户的SSH连接权限
vi /etc/ssh/sshd_config
PermitRootLogin no
#AllowUsers 用户名
AllowGroups 用户组
service sshd restart
或者
/bin/systemctl restart sshd.service
SecureCRT
---------------------------
连接到会话ip 失败 :
The server has disconnected with an error. Server message reads:
The server has disconnected with an error. Server message reads:
A protocol error occurred. Change of username or service not allowed: (root,ssh-connection) -> (新用户名,ssh-connection)
这是因为SecureCRT设置中的用户名和你登录时候输入的用户名不相符,在这里改一下就可以:
选项 -> 会话选项 -> 连接 -> SSH2 -> 用户名
修改后登录正常,这样可以禁用服务器的ROOT登录了(为了安全)。
相关推荐
projava 2020-11-14
WanKaShing 2020-11-12
airfish000 2020-09-11
tryfind 2020-09-14
yegen00 2020-09-10
kkaazz 2020-09-03
风语者 2020-09-02
BraveWangDev 2020-08-19
lichuanlong00 2020-08-15
gsl 2020-08-15
pandaphinex 2020-08-09
yhuihon 2020-08-09
CheNorton 2020-08-02
xiangqiao 2020-07-28
hpujsj 2020-07-26
hpujsj 2020-07-26
sshong 2020-07-19
BraveWangDev 2020-07-19
annan 2020-07-18