LinuxCommandLibrary

plink

TLDR

Connect to SSH server

$ plink [user]@[host]
copy
Execute remote command
$ plink [user]@[host] [command]
copy
Use specific port
$ plink -P [port] [user]@[host]
copy
Use private key
$ plink -i [key.ppk] [user]@[host]
copy
SSH tunnel
$ plink -L [local_port]:[remote_host]:[remote_port] [user]@[host]
copy

SYNOPSIS

plink [options] [user@]host [command]

DESCRIPTION

plink is PuTTY's command-line SSH client. Remote command execution.
The tool provides SSH connectivity. Part of PuTTY suite.
plink connects via SSH.

PARAMETERS

HOST

Remote host.
-P PORT
Port number.
-i KEY
Private key file.
-L TUNNEL
Local port forward.
-batch
Non-interactive mode.
--help
Display help.

CAVEATS

Part of PuTTY. Uses PPK key format. Windows/Unix versions.

HISTORY

Plink is part of PuTTY for command-line SSH operations.

SEE ALSO

ssh(1), putty(1), pscp(1)

Copied to clipboard