您目前处于:笔记
2017-05-03
|
sshd 问题:A protocol error occurred. Change of username or service not allowed vi /etc/ssh/sshd_config 把 #PermitRootLogin yes,修改为 PermitRootLogin no,修改完成后,保存退出,重启 sshd service ssh restart 新建一个普通用户 useradd test passwd test123 在securecrt远程工具中,使用普通用户登陆的时候,出现了 The server has disconnected with an error. Server message reads: A protocol error occurred. Change of username or service not allowed: (shang1,ssh-connection) -> (shang,ssh-connection) 这样类似的错误。 Linux 怎么踢掉远程登录用户 fuser -k /dev/pts/X X 即他的连接标识,如192.168.1.3连过来的为 pts/0 ,他标识为0 # who 15:23:13 up 26 days, 1:44, 2 users, load average: 0.00, 0.05, 0.03 USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT root pts/0 192.168.1.3 15:12 11:05 0.02s 0.02s -bash root pts/1 192.168.4.17 09:49 0.00s 0.09s 0.00s w # fuser -k /dev/pts/0 /dev/pts/0: 20359 # who 15:23:23 up 26 days, 1:44, 1 user, load average: 0.22, 0.10, 0.05 USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT root pts/1 192.168.4.17 09:49 0.00s 0.09s 0.00s w Linux 给用户赋予操作权限 chown -R test:test /aliyun 赋予 aliyun 目录给 test 权限 转载请并标注: “本文转载自 linkedkeeper.com ” ©著作权归作者所有 |