NetExec SSH Key Auth

Validate a recovered SSH private key against one or many hosts. Automatically detects passphrase-protected keys and reports per-host success.

Tool
nxc
Category
Enumeration / SSH
Platform
linux
Requires
no credentials
Protocols
SSH

Open in Command Manager

Syntax

Angle-bracket tokens are placeholders — replace them with your target's values, or open this command in the app to fill them in and copy the result.

nxc ssh <target> -u '<user>' --key-file <private-key>

Credential variants

The same attack using a different authentication material.

Encrypted Key requires password

nxc ssh <target> -u '<user>' --key-file <private-key> -p '<passphrase>'

Examples

nxc ssh 10.10.10.0/24 -u root --key-file ~/.ssh/id_rsa

Tags

netexec nxc ssh key-auth