3.11.3.8 -pwfile and -pw: specify a password

A simple way to automate a remote login is to supply your password on the command line.

The -pwfile option takes a file name as an argument. The first line of text in that file will be used as your password.

The -pw option takes the password itself as an argument. This is 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. -pw is retained for backwards compatibility only; you should use -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.