Create a text file in your home directory named .netrc containing:
machine myserver.example.com login myusername password mypassword
However it would be more secure to set up ssl and use scp. There's little reason to use an insecure protocol like ftp.