manishfromuk
asked on
KERBEROS_V4 rejected as an authentication type
i am trying to use FTP in an shell script.
i created a following program
#!/bin/sh
HOST='172.29.32.202'
USER='oracle'
PASSWD='syntel_123'
FILE='file.txt'
ftp -n $HOST <<END_SCRIPT
quote USER $USER
quote PASS $PASSWD
put $FILE
quit
END_SCRIPT
exit 0
I have also tried creating the file .netrc
machine MCK_SRV_2
login oracle
password syntel_123
but still it gives the same error.
Thanks in advance
Regards
manish
i created a following program
#!/bin/sh
HOST='172.29.32.202'
USER='oracle'
PASSWD='syntel_123'
FILE='file.txt'
ftp -n $HOST <<END_SCRIPT
quote USER $USER
quote PASS $PASSWD
put $FILE
quit
END_SCRIPT
exit 0
I have also tried creating the file .netrc
machine MCK_SRV_2
login oracle
password syntel_123
but still it gives the same error.
Thanks in advance
Regards
manish
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
I have the same problem. After installing Red Hat Fedora Core 2 "Everything", not I cannot connect to a local machine in the same network. This is what happens:
[root@copia-linux beatinger]# ftp 10.1.252.196
Connected to 10.1.252.196.
220 GlobalSCAPE Secure FTP Server (v. 3.0)
500 Protocol not supported.
500 Protocol not supported.
KERBEROS_V4 rejected as an authentication type
Name (10.1.252.196:root): download
331 Password required for download.
Password:
230-Login OK. Proceed.
230 Eden Hosting DOWNLOAD Area.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> cd Linux
550 Permission denied.
ftp> dir
227 Entering Passive Mode (10,1,252,196,109,140).
550 Permission denied.
I desparately need to be able to connect to the FTP server to retrieve RPMs I need to install. How can this be fixed?
[root@copia-linux beatinger]# ftp 10.1.252.196
Connected to 10.1.252.196.
220 GlobalSCAPE Secure FTP Server (v. 3.0)
500 Protocol not supported.
500 Protocol not supported.
KERBEROS_V4 rejected as an authentication type
Name (10.1.252.196:root): download
331 Password required for download.
Password:
230-Login OK. Proceed.
230 Eden Hosting DOWNLOAD Area.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> cd Linux
550 Permission denied.
ftp> dir
227 Entering Passive Mode (10,1,252,196,109,140).
550 Permission denied.
I desparately need to be able to connect to the FTP server to retrieve RPMs I need to install. How can this be fixed?
Can you connect by hand, and just not by script?