错误显示

在Ubuntu上查看配置

命令:vim /etc/ssh/sshd_config

完整的sshd_config配置

# Package generated configuration file
# See the sshd_config(5) manpage for details# What ports, IPs and protocols we listen for
Port 22
# Use these options to restrict which interfaces/protocols sshd will bind to
#ListenAddress ::
#ListenAddress 0.0.0.0
Protocol 2
# HostKeys for protocol version 2
HostKey /etc/ssh/ssh_host_rsa_key
HostKey /etc/ssh/ssh_host_dsa_key
HostKey /etc/ssh/ssh_host_ecdsa_key
HostKey /etc/ssh/ssh_host_ed25519_key
#Privilege Separation is turned on for security
UsePrivilegeSeparation yes# Lifetime and size of ephemeral version 1 server key
KeyRegenerationInterval 3600
ServerKeyBits 1024# Logging
SyslogFacility AUTH
LogLevel INFO# Authentication:
LoginGraceTime 120
#PermitRootLogin prohibit-password
PermitRootLogin yesStrictModes yesRSAAuthentication yes
PubkeyAuthentication yes
#AuthorizedKeysFile     %h/.ssh/authorized_keys# Don't read the user's ~/.rhosts and ~/.shosts files
IgnoreRhosts yes
# For this to work you will also need host keys in /etc/ssh_known_hosts
RhostsRSAAuthentication no
# similar for protocol version 2
HostbasedAuthentication no
# Uncomment if you don't trust ~/.ssh/known_hosts for RhostsRSAAuthentication
#IgnoreUserKnownHosts yes# To enable empty passwords, change to yes (NOT RECOMMENDED)
PermitEmptyPasswords no# Change to yes to enable challenge-response passwords (beware issues with
# some PAM modules and threads)
ChallengeResponseAuthentication no
# Change to no to disable tunnelled clear text passwords
#PasswordAuthentication yes# Kerberos options
#KerberosAuthentication no
#KerberosGetAFSToken no
#KerberosOrLocalPasswd yes
#KerberosTicketCleanup yes# GSSAPI options
#GSSAPIAuthentication no
#GSSAPICleanupCredentials yesX12Forwarding yes
X11DisplayOffset 10
PrintMotd no
PrintLastLog yes
TCPKeepAlive yes
#UseLogin no#MaxStartups 10:30:60
#Banner /etc/issue.net# Allow client to pass locale environment variables
AcceptEnv LANG LC_*Subsystem sftp /usr/lib/openssh/sftp-server# Set this to 'yes' to enable PAM authentication, account processing,
# and session processing. If this is enabled, PAM authentication will
# be allowed through the ChallengeResponseAuthentication and
# PasswordAuthentication.  Depending on your PAM configuration,
# PAM authentication via ChallengeResponseAuthentication may bypass
# the setting of "PermitRootLogin without-password".
# If you just want the PAM account and session checks to run without
# PAM authentication, then enable this but set PasswordAuthentication
# and ChallengeResponseAuthentication to 'no'.
UsePAM yes

特别注意红色框框部分,把其中一个注释,以免造成冲突。

重启sshd:service sshd restart
重新连接ssh/winSCP即可成功连接。

登录SSH/winSCP一直显示密码错误相关推荐

  1. 链接计算机网络密码错误,手机连不上路由器显示密码错误怎么办?

    问:手机连不上路由器显示密码错误怎么办? 答:手机连接路由器wifi网络的时候,如果现实密码错误,这就很明显了,你输入的wifi密码不正确,所以连不上路由器的wifi网络. 这种情况下,请重新输入wi ...

  2. 计算机名弹出输入网络密码错误,win10系统登录网络打印机出现用户名和密码错误的设置办法...

    有关win10系统登录网络打印机出现用户名和密码错误的操作方法想必大家有所耳闻.但是能够对win10系统登录网络打印机出现用户名和密码错误进行实际操作的人却不多.其实解决win10系统登录网络打印机出 ...

  3. 传奇外网架设常见的问题及解决办法-传奇创建人物失败/不开门/PAK显示密码错误/脚本错误

    传奇外网架设常见的问题及解决办法-传奇创建人物失败/不开门/PAK显示密码错误/脚本错误 在架设传奇的时候是否有遇到无法创建人物.pak密码错误等一系列情况呢?咱们都知道是架设不对的问题,但是具体是哪 ...

  4. 全国计算机注册时密码为什么老是错误,电脑密码正确却显示密码错误怎么办

    大家好,我是时间财富网智能客服时间君,上述问题将由我为大家进行解答. 电脑密码正确却显示密码错误的解决方法如下: 1.反复确定密码的输入是否真的正确. 2.检查输入时,是不是字母大小写没有区分开.如果 ...

  5. Todesk远程连接时一直显示密码错误

    今天下午在让朋友使用todesk远程连接我电脑的时候发现一直连不上,设备代码和密码都没有问题,朋友就是连不上,我自己可以控制别人的电脑,用手机也可以控制自己的电脑,唯独别人连我的时候一直显示密码错误. ...

  6. iphone5连接wifi显示密码错误

            问题:iphone5一直连接不上wifi,显示密码错误.寝室的HTC,三星,iphone4却都可以. 测试机系统:iphone5 6.0.2完美越狱. 解决方法:使用iTools进入/ ...

  7. 登录失败提示账号或密码错误!

    JSP 在密码框下面写 <p style='color:red'>${errorMsg } </p> Servlet request.setAttribute("er ...

  8. 中招报名网站服务器错误,中考报名显示密码错误 中考网上报名说我密码错误怎么办...

    你是要查录取了没吧,这个要重新注册.登录的下面有,网上交流会什么的,点击进入.注册.再回到原页面把你刚刚注册的登录就可以了. 才登录报名中考的,是网站的问题吗? 海南中考什么时候开始查分 那样查不到的 ...

  9. 计算机报名怎么老是密码错误,中考报名显示密码错误 中考网上报名说我密码错误怎么办...

    我..知..道 加..我..私..聊 准考证和验证码都没有错,密码是班主任给的,查我的就查得到 你的密码当然只能查你自己的成绩啊!如果是同样的初始密码,那你同桌可能已经改了. 靳*(我自己和谐掉了)! ...

最新文章

  1. 计算机界和数学界,也需要一个“希波克拉底誓言”
  2. 感觉 Mongodb 的操作 还没 mysql 方便 。。。。
  3. Bing API 2的体验
  4. Lucene入门教程
  5. 发布json数据_数据库每周国际新闻 20201211
  6. Android开发:5-2、ListView、GridView、Spinner
  7. oracle数据块dump信息,从数据块的dump信息能看出什么
  8. springboot集成百度云OCR,实现通用文字识别,身份证文字识别,车牌号识别等等
  9. SQLite数据库版本升级
  10. 【Origin】1.2 创建数据文件——Worksheet操作(1)
  11. 猎头公司人才管理现状及人才资源管理解决方案
  12. golang中GDK和UTF8编码转换
  13. 【Arduino】入门篇——人体红外自动报警
  14. 复习之JavaScript基本语法(三)——getElement[...]方法使用
  15. 网络唤醒 php,php远程网络唤醒计算机及WOL唤醒魔术包格式原理
  16. 真实机下 ubuntu 18.04 安装anaconda+cuDNN+pytorch以及其版本选择(亲测非常实用)
  17. 数据资产价值评估与定价:研究综述和展望
  18. java json parser_自己实现JSON解析器 JsonParser
  19. 小米首发鸿蒙系统,6月2日,鸿蒙系统正式来临,小米,OPPO已拒绝
  20. java计算机毕业设计企业信息安全评价系统源程序+mysql+系统+lw文档+远程调试

热门文章

  1. 安卓模拟器突然不支持VT打不开模拟器的解决办法
  2. python语法31[函数]
  3. 支付宝摇一摇红包脚本【Auto.js】
  4. Android使用七牛实现录像加时间水印和拍照(截帧回调)
  5. 5G 核心网 Inter NG-RAN node N2 based handover 信令流程
  6. 对于大数据、人工智能时代,我们应该如何面对?
  7. Mysql许久不用后服务无法打开,暴力解决法(报错:服务没有报任何错误)
  8. Android 10 原生支持 5G!
  9. 关于SAP采购信息记录的价格失效后,采购订单不要带出失效价格具体实现
  10. 原创|对接三方服务商回调鉴权的程序代码设计