X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/putty/blobdiff_plain/e117a7427fbe82256705a281e29ec0fcfafeb613..8c7d710ce382c85e38ce4fb73fd357e00e7d5ed2:/doc/plink.but?ds=sidebyside diff --git a/doc/plink.but b/doc/plink.but index 44cf8d7d..fbc96623 100644 --- a/doc/plink.but +++ b/doc/plink.but @@ -1,4 +1,4 @@ -\versionid $Id: plink.but,v 1.16 2002/08/07 19:20:06 simon Exp $ +\versionid $Id: plink.but,v 1.18 2003/03/24 10:49:01 simon Exp $ \C{plink} Using the command-line connection tool Plink @@ -43,13 +43,28 @@ use Plink: \c Z:\sysosd>plink \c PuTTY Link: command-line connection utility -\c Release 0.50 +\c Release 0.53 \c Usage: plink [options] [user@]host [command] +\c ("host" can also be a PuTTY saved session name) \c Options: \c -v show verbose messages -\c -ssh force use of ssh protocol +\c -load sessname Load settings from saved session +\c -ssh -telnet -rlogin -raw +\c force use of a particular protocol (default SSH) \c -P port connect to specified port +\c -l user connect with specified username +\c -m file read remote command(s) from file +\c -batch disable all interactive prompts +\c The following options only apply to SSH connections: \c -pw passw login with specified password +\c -L listen-port:host:port Forward local port to remote address +\c -R listen-port:host:port Forward remote port to local address +\c -X -x enable / disable X11 forwarding +\c -A -a enable / disable agent forwarding +\c -t -T enable / disable pty allocation +\c -1 -2 force use of particular protocol version +\c -C enable compression +\c -i key private key file for authentication Once this works, you are ready to use Plink. @@ -109,6 +124,19 @@ Usually Plink is not invoked directly by a user, but run automatically by another process. Therefore you typically do not want Plink to prompt you for a user name or a password. +Next, you are likely to need to avoid the various interactive +prompts Plink can produce. You might be prompted to verify the host +key of the server you're connecting to, to enter a user name, or to +enter a password. + +To avoid being prompted for the server host key when using Plink for +an automated connection, you should first make a \e{manual} +connection (using either of PuTTY or Plink) to the same server, +verify the host key (see \k{gs-hostkey} for more information), and +select Yes to add the host key to the Registry. After that, Plink +commands connecting to that server should not give a host key prompt +unless the host key changes. + To avoid being prompted for a user name, you can: \b Use the \c{-l} option to specify a user name on the command line.