[oracle@dbserver practice]$ /home/oracle/practice/ftptst
Connected to 172.12.40.45.
220 (vsFTPd 2.0.1)
530 Please login with USER and PASS.
530 Please login with USER and PASS.
KERBEROS_V4 rejected as an authentication type
can anybody tell me how to connect to ftp using shell script.
I think user is also defined as a global variable somewhere ...i.e check your env or .profile file
If u dont want to search all these just change the varible user to some thing else ..just give it another name ...that will do it .
try to execute ur remote commands... and chk...
dont worry with "KERBEROS_V4 rejected as an authentication type" msg.
it telling that ur KERBEROS version is not able to recoznise the auth type.. but sud be able to log in....
just try to execute ur command ( try ls on the remote server )... and tell us.. wht happenses...
eg
ip='172.12.40.45'
user='oracele'
pw='oracle@7Hills'
ftp -n -i -v $ip<<EOF
user $user $pw
ls
bye
EOF