Skip to content

ssh-publickey-acceptance does not work #2917

@meme-lord

Description

@meme-lord

Describe the bug
Running the ssh-publickey-acceptance NSE script gives false negative when testing my own public key against my own server.

To Reproduce

nmap -p 22 --script ssh-publickey-acceptance --script-args "ssh.usernames={'root'}, ssh.publickeys={'./id_rsa.pub'}" myserver.com

Expected behavior
Script should tell me the public key is accepted

Version info (please complete the following information):

  • OS:
Linux laptop 6.10.4-arch2-1 #1 SMP PREEMPT_DYNAMIC Sun, 11 Aug 2024 16:19:06 +0000 x86_64 GNU/Linux
  • Output of nmap --version:
Nmap version 7.95 ( https://nmap.org )
Platform: x86_64-pc-linux-gnu
Compiled with: liblua-5.4.6 openssl-3.3.1 libssh2-1.11.0 libz-1.3.1 libpcre2-10.44 libpcap-1.10.4 nmap-libdnet-1.12 ipv6
Compiled without:
Available nsock engines: epoll poll select

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions