LinuxCommandLibrary

plink

PuTTY command-line SSH connection tool

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 the command-line SSH connection tool from the PuTTY suite. It provides non-interactive SSH access for executing remote commands, port forwarding, and scripted SSH operations.
Unlike the interactive PuTTY terminal, plink is designed for automation and batch operations. It supports SSH key authentication using PuTTY's .ppk key format. The -batch flag disables all interactive prompts, making it suitable for scripts and cron jobs.

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)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community