ftp problem
hi gurus,
i want to ftp a file from solaris to XP windows. But i meet a problem. have anybody got any idea? Quote:
command Quote:
Quote:
bye the way i got followed result without redirect the file ftp command. Quote:
|
Not my cup of tea but here is a suggestion.
1. truss the command 2. add the -d (debugging) option 3. According to the documentation, adding the -n prevents auto login, try without it (-n). Then, according to this paragraph from docs.sun.com, it should check the .netrc. -n Does not attempt “auto-login” upon initial connection. If auto-login is not disabled, ftp checks the .netrc file in the user's home directory for an entry describing an account on the remote machine. If no entry exists, ftp will prompt for the login name of the account on the remote machine (the default is the login name on the local machine), and, if necessary, prompts for a password and an account with which to login. Hope it helps. If I am wrong, somebody please let me know. |
To fix the problem, add the following line in the ftpdepo.tmp file:
"user username password" This must be the first line of the file. Obviously, replace username and password by the real ones. |
Quote:
as a result, i can't use .netrc file vith -n option of ftp? Quote:
i know, i could add username and password in the the file, but i don't want to add any password in an ordinary file or a script. but now i see i hava no more alternative. regards. |
Quote:
In any case, using ftp in the first place, which sends cleartext passwords on the net, is already putting your security at risk. If you really care about securing the credentials, you'd better use scp or sftp. |
All times are GMT -5. The time now is 03:22 AM. |