Answer the question
In order to leave comments, you need to log in
How to upload a file to a remote ftp?
how to upload a file to a remote ftp folder? Port 22 is closed, if you open ms -> ftp connection, enter [email protected] then the password admin everything opens, files can be uploaded. Please help me understand
Answer the question
In order to leave comments, you need to log in
To automate:
1) Create a ~/.netrc file with the following content
machine 192.168.1.1
login ftpuser
password abc123
2) chmod 600 ~/.netrc
3) Run a command in the console or create a sh script to reuse
ftp 192.168.1.1 << EOT
cd mydir
put myfile
EOT
What is the question, then? If mc can then copy them.
If the question is about automation from scripts, then use lftp for example. Or as stated above.
in mc, you can write this directly on the command line.
If everything is successful, then mc will open the specified FTP in the current panel and the password will not get into history.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question