mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-01 03:22:48 -05:00
Add -pwfile option, a more secure version of -pw.
Similarly to cmdgen's passphrase options, this replaces the password on the command line with a filename to read the password out of, which means it can't show up in 'ps' or the Windows task manager.
This commit is contained in:
@ -245,6 +245,7 @@ saved sessions from
|
||||
\IM{-m} \c{-m} command-line option
|
||||
\IM{-P-upper} \c{-P} command-line option
|
||||
\IM{-pw} \c{-pw} command-line option
|
||||
\IM{-pwfile} \c{-pwfile} command-line option
|
||||
\IM{-A-upper} \c{-A} command-line option
|
||||
\IM{-a} \c{-a} command-line option
|
||||
\IM{-X-upper} \c{-X} command-line option
|
||||
|
@ -114,11 +114,16 @@ sequences. These options override Plink's default behaviour to enable
|
||||
or disabling such filtering on the standard error and standard output
|
||||
channels.
|
||||
|
||||
\dt \cw{-pwfile} \e{filename}
|
||||
|
||||
\dd Open the specified file, and use the first line of text read from
|
||||
it as the remote password.
|
||||
|
||||
\dt \cw{-pw} \e{password}
|
||||
|
||||
\dd Set remote password to \e{password}. \e{CAUTION:} this will likely
|
||||
make the password visible to other users of the local machine (via
|
||||
commands such as \q{\c{w}}).
|
||||
commands such as \q{\c{ps}} or \q{\c{w}}). Use \cw{-pwfile} instead.
|
||||
|
||||
\dt \cw{\-L} \cw{[}\e{srcaddr}\cw{:]}\e{srcport}\cw{:}\e{desthost}\cw{:}\e{destport}
|
||||
|
||||
|
@ -101,11 +101,16 @@ channel from the server, to prevent remote processes sending confusing
|
||||
escape sequences. This option forces the standard error channel to not be
|
||||
filtered.
|
||||
|
||||
\dt \cw{-pwfile} \e{filename}
|
||||
|
||||
\dd Open the specified file, and use the first line of text read from
|
||||
it as the remote password.
|
||||
|
||||
\dt \cw{-pw} \e{password}
|
||||
|
||||
\dd Set remote password to \e{password}. \e{CAUTION:} this will likely
|
||||
make the password visible to other users of the local machine (via
|
||||
commands such as \q{\c{w}}).
|
||||
commands such as \q{\c{ps}} or \q{\c{w}}). Use \cw{-pwfile} instead.
|
||||
|
||||
\dt \cw{-1}
|
||||
|
||||
|
@ -89,11 +89,16 @@ channel from the server, to prevent remote processes sending confusing
|
||||
escape sequences. This option forces the standard error channel to not be
|
||||
filtered.
|
||||
|
||||
\dt \cw{-pwfile} \e{filename}
|
||||
|
||||
\dd Open the specified file, and use the first line of text read from
|
||||
it as the remote password.
|
||||
|
||||
\dt \cw{-pw} \e{password}
|
||||
|
||||
\dd Set remote password to \e{password}. \e{CAUTION:} this will likely
|
||||
make the password visible to other users of the local machine (via
|
||||
commands such as \q{\c{w}}).
|
||||
commands such as \q{\c{ps}} or \q{\c{w}}). Use \cw{-pwfile} instead.
|
||||
|
||||
\dt \cw{-1}
|
||||
|
||||
|
@ -838,17 +838,23 @@ any case.)
|
||||
This option is equivalent to the port number control in the Session
|
||||
panel of the PuTTY configuration box (see \k{config-hostname}).
|
||||
|
||||
\S2{using-cmdline-pw} \i\c{-pw}: specify a \i{password}
|
||||
\S2{using-cmdline-pw} \i\c{-pwfile} and \i\c{-pw}: specify a \i{password}
|
||||
|
||||
A simple way to automate a remote login is to supply your password
|
||||
on the command line. This is \e{not recommended} for reasons of
|
||||
security. If you possibly can, we recommend you set up public-key
|
||||
authentication instead. See \k{pubkey} for details.
|
||||
on the command line.
|
||||
|
||||
Note that the \c{-pw} option only works when you are using the SSH
|
||||
protocol. Due to fundamental limitations of Telnet, Rlogin, and
|
||||
SUPDUP, these protocols do not support automated password
|
||||
authentication.
|
||||
The \c{-pwfile} option takes a file name as an argument. The first
|
||||
line of text in that file will be used as your password.
|
||||
|
||||
The \c{-pw} option takes the password itself as an argument. This is
|
||||
\s{NOT SECURE} if anybody else uses the same computer, because the
|
||||
whole command line (including the password) is likely to show up if
|
||||
another user lists the running processes. \c{-pw} is retained for
|
||||
backwards compatibility only; you should use \c{-pwfile} instead.
|
||||
|
||||
Note that these options only work when you are using the SSH protocol.
|
||||
Due to fundamental limitations of Telnet, Rlogin, and SUPDUP, these
|
||||
protocols do not support automated password authentication.
|
||||
|
||||
\S2{using-cmdline-agentauth} \i\c{-agent} and \i\c{-noagent}:
|
||||
control use of Pageant for authentication
|
||||
|
Reference in New Issue
Block a user