手机版
你好,游客 登录 注册
背景:
阅读新闻

SecureCRT SSH连接一直提示密码错误

[日期:2016-09-06] 来源:Linux社区  作者:lsq491203787 [字体: ]

遇到在密码正确的情况下ssh密码不对,最后一种是我遇到的问题上面的是网上大家遇到的总结一下。我的问题是selinux没有关闭,被改动了配置。

1、权限问题
.ssh目录,以及/home/当前用户 需要700权限,参考以下操作调整
sudo chmod 700 ~/.ssh
sudo chmod 700 /home/当前用户
.ssh目录下的authorized_keys文件需要600或644权限,参考以下操作调整
sudo chmod 600 ~/.ssh/authorized_keys

2、StrictModes问题
编辑
sudo vi /etc/ssh/sshd_config
找到
#StrictModes yes
改成
StrictModes no

3    RSAAuthentication问题/etc/ssh/sshd_config
RSAAuthentication yes
PubkeyAuthentication yes

如果还不行,可以用ssh -vvv 目标机器ip 查看详情,根据输出内容具体问题具体分析了

4、#getenforce 查看selinux状态
[root@localhost ~]# getenforce ---------------查看selinux状态
Enforcing  ----------------------------------显示正在实施运行
#setenforce 0|1 ------------------------------设置selinux关闭|开启
[root@localhost ~]# getenforce ---------------再查看selinux状态
Permissive------------------------------------可以关闭,但只是零时关闭
vi /etc/selinux/config
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
#    enforcing - SELinux security policy is enforced.
#    permissive - SELinux prints warnings instead of enforcing.
#    disabled - No SELinux policy is loaded.
SELINUX=disabled    --------------------------需要把原来的enforcing改成disabled
# SELINUXTYPE= can take one of these two values:
#    targeted - Targeted processes are protected,
#    mls - Multi Level Security protection.
SELINUXTYPE=targeted

SecureCRT 连接VirtualBox 中的Ubuntu -端口转发  http://www.linuxidc.com/Linux/2015-12/126258.htm

用SecureCRT 实现 WIN7 与 Linux 双向通信的问题及文件互传问题解决 http://www.linuxidc.com/Linux/2014-08/105412.htm

如何使用SecureCRT6.6.2通过SSH方式登录Ubuntu系统 http://www.linuxidc.com/Linux/2011-03/33024p4.htm

SecureCRT 连接 Ubuntu http://www.linuxidc.com/Linux/2013-06/85824.htm

Ubuntu 12.04 + 虚拟机VMware 9 + Secure CRT + EditPlus 本地C++开发环境搭建 http://www.linuxidc.com/Linux/2013-05/84820.htm

利用SecureCRT在Linux与Windows之间传输文件 http://www.linuxidc.com/Linux/2014-08/105413.htm

Ubuntu 14.10安装SecureCRT 7.3 http://www.linuxidc.com/Linux/2014-10/108709.htm

SecureCRT 的详细介绍请点这里
SecureCRT 的下载地址请点这里

本文永久更新链接地址http://www.linuxidc.com/Linux/2016-09/134925.htm

linux
相关资讯       SecureCRT 
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款