DESCRIPTION
The .netrc file is a text file residing in your home directory that contains remote user names and passwords for use by the rexec command.
The format for each line is as follows:
machine remote_machine_name login remote_username password string
This method of storing remote user names and passwords is very insecure. To minimize the risk of other user reading the plain text passwords in the file, you should limit the access permissions on the file to only the user it contains passwords for.
EXAMPLES
A ~/.netrc containing the line
machine colossus login guest password guess
allows the command
rexec colossus ls
to run the ls on the remote machine colossus as the user guest with the password guess.
ACKNOWLEDGEMENT
This product includes software developed by the University of California, Berkeley and its contributors.
PORTABILITY
Windows 10. Windows Server 2016. Windows Server 2019. Windows 11. Windows Server 2022. Windows Server 2025.
AVAILABILITY
PTC MKS Toolkit for System Administrators
PTC MKS Toolkit for Developers
PTC MKS Toolkit for Interoperability
PTC MKS Toolkit for Professional Developers
PTC MKS Toolkit for Professional Developers 64-Bit Edition
PTC MKS Toolkit for Enterprise Developers
PTC MKS Toolkit for Enterprise Developers 64-Bit Edition
SEE ALSO
- Commands:
- rexec
MKS Toolkit Connectivity Solutions Guide
PTC MKS Toolkit 10.5 Documentation Build 40.