PuTTY can be made to do various things without user intervention by supplying command-line arguments (e.g., from a command prompt window, or a Windows shortcut).
-cleanup
-load
: load a saved session-ssh
, -ssh-connection
, -telnet
, -rlogin
, -supdup
, -raw
, -serial
-v
: increase verbosity-l
: specify a login name-L
, -R
and -D
: set up port forwardings-m
: read a remote command or script from a file-P
: specify a port number-pwfile
and -pw
: specify a password-agent
and -noagent
: control use of Pageant for authentication-A
and -a
: control agent forwarding-X
and -x
: control X11 forwarding-t
and -T
: control pseudo-terminal allocation-N
: suppress starting a shell or command-nc
: make a remote network connection in place of a remote shell or command-C
: enable compression-1
and -2
: specify an SSH protocol version-4
and -6
: specify an Internet protocol version-i
: specify an SSH private key-cert
: specify an SSH certificate-no-trivial-auth
: disconnect if SSH authentication succeeds trivially-loghost
: specify a logical host name-hostkey
: manually specify an expected host key-pgpfp
: display PGP key fingerprints-sercfg
: specify serial port configuration-sessionlog
, -sshlog
, -sshrawlog
: enable session logging-logoverwrite
, -logappend
: control behaviour with existing log file-proxycmd
: specify a local proxy command-restrict-acl
: restrict the Windows process ACL-host-ca
: launch the host CA configuration-legacy-stdio-prompts
: handle Windows console prompts like older versions of PuTTY-legacy-charset-handling
: handle character set in prompts like older versions of PuTTY