I have a dozen of FTP accounts (clouds, remote servers, etc) and I'm using them quite often nowadays. If you are a computer geek (like me ð³ ) then you will mostly work at your tty console so no graphical FTP program whatsoever.
How do you manage to keep the track of all your connection host names, login user names and passwords?
I've found a simple solution: setup a .netrc file in your home directory to connect automatically your FTP servers. That's all.
It has a quite simple structure: on each row you may define a FTP connection providing the host name, the login name and its password. For example:
machine urdomain.org login <my-username1> password <my-password1>
machine mydomain.net login <my-username2> password <my-password2>
Now, anytime you want to log into your favourite FTP server you should do only type a ftp command like "ftp
For instance, by typing the following command at the terminal:
user@gentoo ~ $ ftp mydomain.net
I've got automatically connected to the FTP server with the user <my-username2> and its password <my-password2>.
So I don't have to recall all the domain names, users and password. And it works!
Now, if you think that this article was interesting don't forget to rate it. It shows me that you care and thus I will continue write about these things.
Latest posts by Eugen Mihailescu (see all)
- Symfony authentication redirect after each request - January 22, 2018
- Emerging Perl without Perl in Gentoo - September 26, 2017
- How to choose your decoupling capacitor - September 9, 2017