automatic login linux ftp without displaying password

automatic login linux ftp without displaying password

create file /root/.netrc

put in :
machine ftp.ftpserver.com
user testuser
password testpass

chmod 400 /root/.netrc

don’t forget to chmod, so you have to be root to be able to access the file.

test by just typing ftp ftp.ftpserver.com

et voila, your logged in without using a user or pass

Leave a Reply

Your email address will not be published. Required fields are marked *

four × 3 =

This site uses Akismet to reduce spam. Learn how your comment data is processed.