Xshell连接虚拟机时,提示SSH服务器拒绝了密码
2016-04-15 22:13
543 查看
首先,开启ssh服务,执行以下命令:/etc/init.d/ssh start 或 service sshd start
然后ifconfig查看其ip地址,当Xshell连接虚拟机时,提示:SSH服务器拒绝了密码。请再试一次。
sshd的设置不允许root用户用密码远程登录
修改 vim /etc/ssh/sshd_config
改成
然后ifconfig查看其ip地址,当Xshell连接虚拟机时,提示:SSH服务器拒绝了密码。请再试一次。
sshd的设置不允许root用户用密码远程登录
修改 vim /etc/ssh/sshd_config
找到# Authentication: LoginGraceTime 120 PermitRootLogin without passwd StrictModes yes
改成
# Authentication: LoginGraceTime 120 PermitRootLogin yes StrictModes yes 重启虚拟机
相关文章推荐
- arm-linux-gcc安装及自定义bash脚本环境变量设置
- linux下Bash编程字符测试与for循环语句(五)
- Linux Shell 脚本调试总结
- Linux Shell变量
- bat脚本调用Android中bash脚本,关闭bat后如何保持bash继续运行
- shell条件-循环-分支-函数
- shell mysql命令 传参数
- 学习shell 指令 压缩文件
- 常用Shell命令
- shell脚本中判断文件是否存在
- linux中shell 特殊变量$0 $n $* $@ $! $?的详解
- 同一Linux主机上共用shell寻求远程协助
- 解决bash: mysql: command not found 的方法
- shell 重定向
- 用c写cgi程序,不能在cgi程序中执行shell命令
- (转载)SQL Server 2005 如何启用xp_cmdshell组件
- Linux-shell编程简单程序
- linux 批量scp自动上传文件的shell脚本
- Ubuntu下shell脚本运行异常:bash和dash的区别
- bash计算性能