Home arrow Journal arrow Connect to a FTP server from Midnight Commander using username/password stored in .netrc file
Connect to a FTP server from Midnight Commander using username/password stored in .netrc file PDF
Wednesday, 11 January 2012
If you want to connect to a FTP server from Midnight Commander you have the possibility to save your username and password to a file that will be used by Midnight Commander FTP Client. This is usefull when you have lots of FTP servers and you want to connect by only using the host name of the FTP server and then username and password will be used from that file.

This is also usefull when you have your FTP server username in  username@domainname format and you cannot enter in Midnight Commander username@domainname@domainname.

So, in order to do that create a file in your root directory of your username account called .netrc. Then set permission to 600 to that file and set owner of that file to be your username of your local account.

Then to add records to that file enter on a separat line the following:

machine yourdomain.com login mark password yourpasshere

You will only modify:
  yourdomain.com - use your FTP server name
  mark - put your FTP username instead
  yourpasshere - put your FTP password instead

Keywords machine, login, password will remain unchanged.

Last Updated ( Wednesday, 11 January 2012 )
 
< Prev   Next >

Other BSD Systems

OpenBSD

Misc

Solaris

Polls

Best BSD firewall?