i believed you are looking into putting a .netrc script in the user you are about to use for telnet, or try to put it inside the /etc directory instead. Try to search for .netrc configurations... by default it doesnt come with this, so you need create this file... then inside you need to place the ftp user and machine name and password as well..
hope this answers your question.