Automatically ftp using specific port
Automatically ftp using specific port
(OP)
Please, your help.
I've trying to make a script for send a file via ftp and specific port I have tried of many different way but it not works.
I tried with the following code but when I run the script I receive a authentication error.
ftp -n '<ip> port' <<END_SCRIPT
quote USER
quote PASSĀ
cd /path/dest
bin
prompt
put /dir/to/orig/file.txt
bye
END_SCRIPT
Thank you in advance
I've trying to make a script for send a file via ftp and specific port I have tried of many different way but it not works.
I tried with the following code but when I run the script I receive a authentication error.
ftp -n '<ip> port' <<END_SCRIPT
quote USER
quote PASSĀ
cd /path/dest
bin
prompt
put /dir/to/orig/file.txt
bye
END_SCRIPT
Thank you in advance
RE: Automatically ftp using specific port
Chris.
Indifference will be the downfall of mankind, but who cares?
Time flies like an arrow, however, fruit flies like a banana.
Never mind this jesus character, stars had to die for me to live.
RE: Automatically ftp using specific port
Yes it has.
I wrote so as an example but maybe I must to be most specific with the code.
ftp -n '<ip>' 'port' <<END_SCRIPT
quote USER ftpuser
quote PASS ftppassword
cd /path/dest
bin
prompt
put /dir/to/orig/file.txt
bye
END_SCRIPT
Error shown
Connected to <ip>
220 Microsoft FTP Service
504 Security mechanism not implemented.
504 Security mechanism not implemented.
KERBEROS_V4 rejected as an authentication type
Remote system type is Windows_NT.
ftp> dir
530 Please login with USER and PASS.
Passive mode refused. Turning off passive mode.
530 Please login with USER and PASS.
ftp: bind: Address already in use
ftp>
Thank you in advance !!
RE: Automatically ftp using specific port
Assuming you are on a Windows machine.
I would suggest you ditch using the M$ Windows FTP client and try WINscp because the error messages make it look like the server wants TLS and the client probably doesn't support it.
Chris.
Indifference will be the downfall of mankind, but who cares?
Time flies like an arrow, however, fruit flies like a banana.
Never mind this jesus character, stars had to die for me to live.
RE: Automatically ftp using specific port
Thank you Chris for your help.
Br,
RE: Automatically ftp using specific port
I just needed to use ascii before to send user/password