因为我的Ubuntu中未安装ssh服务,终端下运行命令:

sudo apt-get install openssh-server

之后重启一下ssh服务:

sudo service  sshd  restart

Password Authentication Failed,Please verify that the username and password are correct.

解决办法:
1、在虚拟机终端使用root帐号登录,编辑/etc/ssh/sshd_config文件

vi /etc/ssh/sshd_config

2、找到Authentication配置部分,将PermitRootLogin xxx-password修改为PermitRootLogin yes,然后保存。

# Authentication:
LoginGraceTime 120
#PermitRootLogin xxx-password
PermitRootLogin yes
StrictModes yes

说明:sshd_config是ssh的配置文件,其中有一个选项 PermitRootLogin 用来配置是否允许root用户登录,默认的xxx-password表示不允许使用密码进行全登录认证,yes则是允许root登录。

3、重启ssh服务,既可以通过SercureCRT正常连接服务器

service ssh restart

无法建立SSH链接和Password Authentication Failed,Please verify that the username and password are correct解决相关推荐

  1. SecureCRT通过SSH服务登录ubuntu出错:Password authentication failed, Please verify that the username and passw

    1. 首先确保ubuntu安装ssh服务.通过ps -e | grep ssh查看,如果 sshd表示ssh已成功启动. 2. 通过SecureCRT登录ssh服务 提示错误:Password aut ...

  2. SSH远程登录失败,提示“Password authentication failed”

    使用SecureCRT登陆,提示"Password authentication failed" 使用linux下ssh登陆,提示"Permission denied, ...

  3. zabbix server报错:FATAL: password authentication failed for user zabbix

    zabbix agent日志 [root@localhost zabbix]# cat zabbix_server.log FATAL: password authentication failed ...

  4. FATAL: password authentication failed for user postgres

    FATAL: password authentication failed for user "postgres" 致命:用户"postgres"的密码验证失败 ...

  5. SecureCRT出现Password authentication failed,也可能是用户名错误

    第一次写博,记载一下碰到的错误 使用SecureCRT登录虚拟机,发现出现"Password authentication failed" 在网上找了一堆方法,都试了一下,发现都没 ...

  6. 数据库工具连接Mysql报Password authentication failed错误

    最近项目需要用mysql数据库,同事把一个新安装的数据交给我使用,没想到一步一个坑,在此记录一下遇到的这个问题. 问题描述 使用navicat数据库工具连接mysql时,弹出了"Passwo ...

  7. 接数句库时 出现FATAL: password authentication failed for user ****

    连接postgresql数据库时,使用的是本机的实际地址.连接是出现:password authentication failed for user "****". 原因应该是po ...

  8. PostgreSQL安装遇到的坑:Problem running post-install step/password authentication failed for user postgres

    第一个问题: 安装过程中提示:Problem running post-install step. Installation may not complete correctly. The datab ...

  9. password authentication failed for user

    password authentication failed for user "postgres" with docker 步骤 运行指令创建一个docker容器 docker ...

最新文章

  1. Shell编程中Shift的用法
  2. SqlHelper++
  3. 基于c语言开发老人防摔系统,家有老人,做好防摔排查
  4. 宇宙总统pascal程序
  5. (转)OL记载Arcgis Server切片
  6. Python随笔(二)GIL
  7. System.Data.OleDb.OleDbException: 未指定的错误的解决方法
  8. 服务器管理器添加php,为web服务器添加php的支持
  9. 数学建模_混合赌博模型
  10. 雾霾颗粒物携带了什么,从何而来?微生物组测序告诉您!
  11. 当你灵感枯竭的时候,如何深挖客户需求?采用曼陀罗思考法(5W1H模式),相信你会找到出路
  12. 记账管家绿色版 V1.0
  13. Quartus ii 13.1 数字时钟
  14. c++高级编程学习笔记7
  15. FBReader 探究
  16. 【 js 基础 】 setTimeout(fn, 0) 的作用
  17. Java生成word文档|综合
  18. EA将向内政及手机游戏开辟商供应发行办事
  19. 字节跳动校招前端面经(2021.03.16)
  20. 怎么用计算机向手机上传照片,老司机教你怎么把手机的照片传到电脑

热门文章

  1. Struts2 验证框架不起作用的几种可能
  2. 水资源行业建设物联网有什么好处?
  3. hdu3729—I'm Telling the Truth(二分图最大匹配)
  4. h5页面怎么处理文件流_H5页面实现下载文件(apk、txt等)的三种方式
  5. 【NOIOL】【数论 / 数值】正反切函数的应用
  6. tplink软件升级有用吗_TP-Link无线路由器升级软件(固件)教程
  7. 视频倒放原理实现(二十五)
  8. win10设置mysql允许远程连接
  9. NYoj_171聪明的kk
  10. NetApp RLM 登录