NETRC(5) — FILE FORMATS
NAME
netrc − .netrc file for ftp(1) remote login data
DESCRIPTION
The .netrc file contains data for logging in to a remote host over the network for file transfers by ftp(1). This file resides in the user’s home directory on the machine initiating the file transfer. It’s permissions should be set to disallow read access by group and others (see chmod(1V)).
Each line of the .netrc file defines options for a specific remote host. A line in the .netrc file can be either a machine line or a default line. The default line indicates a remote host to use as the default destination, and must be the first line in the .netrc file if present. The machine lines contain login information for each remote host to which files can be transferred.
default default-machine-name
machine machine-name options
Fields on each line are separated by SPACE or TAB characters.
The options for a machine line are:
OptionParameterDefaultDescription
loginnamelocalnamelogin name for remote machine
passwordpassword(none)password for remote login name
commandcommand(none)default command to be executed
writeyes/noyeswrite to user if possible
forceyes/nonoalways prompt for login name and password
quietyes/nonollike the -q option
EXAMPLE
mahine ray login demo password mypassword
allows an autologin to the machine “ray” using the login name “demo” with password “mypassword”.
FILES
~/.netrc
SEE ALSO
Sun Release 3.5 — Last change: 28 May 1986