LinuxCommandLibrary

nxc-ssh

tests SSH credentials and executes commands

TLDR

Test SSH credentials

$ nxc ssh [192.168.1.0/24] -u [user] -p [password]
copy
Test with key file
$ nxc ssh [target] -u [user] --key-file [id_rsa]
copy
Execute command
$ nxc ssh [target] -u [user] -p [password] -x [id]
copy
Test password list
$ nxc ssh [target] -u [user] -p [passwords.txt]
copy

SYNOPSIS

nxc ssh target [options]

DESCRIPTION

nxc ssh tests SSH credentials and executes commands. Part of NetExec security testing framework. Supports password spraying and credential validation.

PARAMETERS

-u user

Username or file.
-p pass
Password or file.
--key-file file
SSH private key.
-x cmd
Execute command.
--port port
SSH port.

CAVEATS

For authorized security assessments only. Requires proper authorization.

SEE ALSO

nxc(1), ssh(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community