Skip to content

Instantly share code, notes, and snippets.

@slav123
Created July 12, 2017 08:04
Show Gist options
  • Save slav123/ee4c8e61581a79fee45214c816717ce4 to your computer and use it in GitHub Desktop.
Save slav123/ee4c8e61581a79fee45214c816717ce4 to your computer and use it in GitHub Desktop.
mc FTP
MC is a console file manager. It supports FTP connections, and in my experience is faster in FTP than both Krusader and Gnome Commander.
However, the default FTP connection format string [username[:password]@]hostname has a drawback of not allowing the use of usernames with ‘@’-symbol in them – which is very common for virtual hostings.
One of the solutions is (done in your home directory):
if there is no .netrc file in your home directory — touch .netrc && chmod 600 .netrc
mcedit .netrc (or use vi, nano, or any other editor you prefer)
add the following line to the file (replace all-caps words with your actual credentials): machine HOSTNAME login USER@HOSTNAME password PASSWORD
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment