即使/ etc / ssh / sshd_config中的“ PasswordAuthentication no”也可以通过SFTP使用密码身份验证

阿格里姆

我已经使用SSH启用了Ubuntu 14.04服务器,禁用root登录基于认证SSH密钥并能成功使用基于身份验证与我的用户帐户的SSH密钥连接blahblah我的Mac SSH客户端上。

但是,为了测试使用密码身份验证的SSH登录,我在Filezilla中为用户帐户blahblah使用了SFTP登录及其密码,它使我无需任何基于SSH密钥的身份登录即可登录。

/etc/ssh/sshd_config文件是如下。如您所见,我已禁用PasswordAuthenticationsudo service ssh restart修改此配置文件后,我已经通过使用重新启动了sshd守护程序有什么想法可能会发生这种情况吗?

Port 8888
Protocol 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
UsePrivilegeSeparation yes

KeyRegenerationInterval 3600
ServerKeyBits 1024

SyslogFacility AUTH
LogLevel INFO

LoginGraceTime 120
PermitRootLogin no
StrictModes yes

RSAAuthentication yes
PubkeyAuthentication yes

IgnoreRhosts yes
RhostsRSAAuthentication no
HostbasedAuthentication no

PermitEmptyPasswords no

ChallengeResponseAuthentication no

PasswordAuthentication no


X11Forwarding yes
X11DisplayOffset 10
PrintMotd no
PrintLastLog yes
TCPKeepAlive yes

AcceptEnv LANG LC_*

Subsystem sftp /usr/lib/openssh/sftp-server

UsePAM no
AllowUsers blahblah
阿格里姆

通过查看/var/log/auth.log,可以验证Mac客户端上的Filezilla实际上似乎正在使用Mac SSH代理而不是在此输入的密码。

尝试通过并通过另一台计算机上的SFTP失败而验证了SFTP正在使用SSH密钥身份验证。

本文收集自互联网,转载请注明来源。

如有侵权,请联系[email protected] 删除。

编辑于
0

我来说两句

0条评论
登录后参与评论

相关文章

来自分类Dev

有人可以在/ etc / ssh / sshd_config文件中解释“ PasswordAuthentication”吗?

来自分类Dev

使用 cloud init config 更改 /etc/ssh/sshd_config 中的默认值

来自分类Dev

使用 cloud init config 更改 /etc/ssh/sshd_config 中的默认值

来自分类Dev

为什么TZ通常不在/ etc / ssh / sshd_config的AcceptEnv中列出

来自分类Dev

Ansible:在/ etc / ssh / sshd_config中将UseDNS设置为“ no”

来自分类Dev

SaltStack:SLS sshd中的必需声明文件/ etc / ssh / sshd_config不形成为单个密钥字典

来自分类Dev

SaltStack:SLS sshd中的必需声明文件/ etc / ssh / sshd_config不形成为单个密钥字典

来自分类Dev

尽管sshd_config中的选项“ PermitRootLogin yes”仍然无法使用根ssh

来自分类Dev

更改sshd_config后,即使在LAN上,SSH的登录速度也很慢

来自分类Dev

错误地更改了/ etc / ssh / sshd_config 16.04后登录服务器

来自分类Dev

什么是应用对/ etc / ssh / sshd_config所做的更改的命令?

来自分类Dev

/etc/ssh/sshd_config:第 43 行:错误的配置选项:StrictHostKeyChecking

来自分类Dev

试图了解和使用SSH。从sshd_config删除所有ssh密码会发生什么

来自分类Dev

了解sshd配置中的PasswordAuthentication

来自分类Dev

SSH-PasswordAuthentication否无效

来自分类Dev

使用 ansible playbook 修改 sshd_config 中的 AllowGroups

来自分类Dev

使用sshd_config限制root登录?

来自分类Dev

每用户SSH密码身份验证中的奇怪行为

来自分类Dev

sshd_config文件中的“无密码”是什么意思?

来自分类Dev

如何在/ etc / ssh中还原ssh_config文件

来自分类Dev

Linux 中的 sshd_config 文件中可以提供的 AllowUsers 中的用户条目数是否有限制?

来自分类Dev

是否可以在不禁用sshd_config中的StrictMode的情况下为一组用户使用通用AuthorizedKeysFile?

来自分类Dev

更改sshd_config中的AuthorizedKeysFile不能解决带有加密主目录的公钥身份验证失败

来自分类Dev

在哪里可以找到当前稳定的RHEL sshd_config?

来自分类Dev

sshd_config中的Uselogin

来自分类Dev

如何使用〜/ .ssh / config文件为GitHub设置基于SSH密钥的身份验证?

来自分类Dev

如何使用〜/ .ssh / config文件为GitHub设置基于SSH密钥的身份验证?

来自分类Dev

Sftp中的SSH_FX_PERMISSION_DENIED,即使目录具有777个权限

来自分类Dev

即使使用`ssh -A`,SSH代理转发也不起作用

Related 相关文章

  1. 1

    有人可以在/ etc / ssh / sshd_config文件中解释“ PasswordAuthentication”吗?

  2. 2

    使用 cloud init config 更改 /etc/ssh/sshd_config 中的默认值

  3. 3

    使用 cloud init config 更改 /etc/ssh/sshd_config 中的默认值

  4. 4

    为什么TZ通常不在/ etc / ssh / sshd_config的AcceptEnv中列出

  5. 5

    Ansible:在/ etc / ssh / sshd_config中将UseDNS设置为“ no”

  6. 6

    SaltStack:SLS sshd中的必需声明文件/ etc / ssh / sshd_config不形成为单个密钥字典

  7. 7

    SaltStack:SLS sshd中的必需声明文件/ etc / ssh / sshd_config不形成为单个密钥字典

  8. 8

    尽管sshd_config中的选项“ PermitRootLogin yes”仍然无法使用根ssh

  9. 9

    更改sshd_config后,即使在LAN上,SSH的登录速度也很慢

  10. 10

    错误地更改了/ etc / ssh / sshd_config 16.04后登录服务器

  11. 11

    什么是应用对/ etc / ssh / sshd_config所做的更改的命令?

  12. 12

    /etc/ssh/sshd_config:第 43 行:错误的配置选项:StrictHostKeyChecking

  13. 13

    试图了解和使用SSH。从sshd_config删除所有ssh密码会发生什么

  14. 14

    了解sshd配置中的PasswordAuthentication

  15. 15

    SSH-PasswordAuthentication否无效

  16. 16

    使用 ansible playbook 修改 sshd_config 中的 AllowGroups

  17. 17

    使用sshd_config限制root登录?

  18. 18

    每用户SSH密码身份验证中的奇怪行为

  19. 19

    sshd_config文件中的“无密码”是什么意思?

  20. 20

    如何在/ etc / ssh中还原ssh_config文件

  21. 21

    Linux 中的 sshd_config 文件中可以提供的 AllowUsers 中的用户条目数是否有限制?

  22. 22

    是否可以在不禁用sshd_config中的StrictMode的情况下为一组用户使用通用AuthorizedKeysFile?

  23. 23

    更改sshd_config中的AuthorizedKeysFile不能解决带有加密主目录的公钥身份验证失败

  24. 24

    在哪里可以找到当前稳定的RHEL sshd_config?

  25. 25

    sshd_config中的Uselogin

  26. 26

    如何使用〜/ .ssh / config文件为GitHub设置基于SSH密钥的身份验证?

  27. 27

    如何使用〜/ .ssh / config文件为GitHub设置基于SSH密钥的身份验证?

  28. 28

    Sftp中的SSH_FX_PERMISSION_DENIED,即使目录具有777个权限

  29. 29

    即使使用`ssh -A`,SSH代理转发也不起作用

热门标签

归档