FTP that works correctly in command prompt and shows issue in UNIX server


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers FTP that works correctly in command prompt and shows issue in UNIX server
# 1  
Old 05-19-2011
FTP that works correctly in command prompt and shows issue in UNIX server

Hi All,

FTP ports opens with the given user name and password and allows to download file through COMMAND PROMPT. Code as below:

Code:
H:\>ftp ftpxxxxx
Connected to entvc2ft07-pub.xxxxx.com.
220 Microsoft FTP Service
User (entvc2ft07-pub.xxxxx.com:(none)): userxxxxx
331 User name okay, need password.
Password:
230 User logged in, proceed.
ftp> lcd "C:\Documents and Settings\rajarav\Desktop\ftp"
Local directory now C:\Documents and Settings\rajarav\Desktop\ftp.
ftp> get to-2011-05-19_14-30.zip
200 PORT command successful.
150 Opening ASCII mode data connection for to-2011-05-19_14-30.zip(96277 bytes).
226 Closing data connection.
ftp: 96277 bytes received in 0.19Seconds 512.11Kbytes/sec.
ftp> bye
221 Service closing control connection. Logged out if appropriate.


FTP ports opens and asks for RADIUS password to authenticate the same user (that is used in above COMMAND PROMPT scenario) through UNIX. Code as below:

Code:
SYSTEM_DIR=/usr/bin
HOST=ftpxxxxx
USER=userxxxxx
PASSWD=pwdxxxxx
echo beginning ftp
ftp -n -v $HOST <<%end
quote USER $USER
quote PWD $PASSWD
bin
prompt
ascii
get t-2011-05-19_16-30.zip 
quit
%end


and error message from UNIX FTP command


Code:
Connected to entvc2ft07-pub.xxxxx.com.
220 Check Point FireWall-1 Secure FTP server running on it4m7fwb
331 password: you can use password@RADIUS-password
200 password: you can use 'quote RADIUS-password' or Account command ('ACCT')
421-Access denied - wrong user name or password
421 aborted
Interactive mode off.
421 Service not available, remote server has closed connection
Not connected.



Please explain the difference that FTP is behaving from COMMAND PROMPT & UNIX session.

Last edited by pludi; 05-19-2011 at 05:34 PM..
# 2  
Old 05-20-2011
Quote:
quote USER $USER
quote PWD $PASSWD
Perhaps should be:
Code:
quote USER $USER
quote PASS $PASSWD

 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Shell script not working but command works in command prompt

Hi everyone I have a problem with my script If I try directly this command /usr/bin/nice -n 19 mysqldump -u root --password="******" wiki_schneider -c | nice -n 19 gzip -9 > /point_de_montage/$(date '+%Y%m%d')-wiki-db.sql.gz It works But if I simply add this command in a script and... (8 Replies)
Discussion started by: picemma
8 Replies

2. Shell Programming and Scripting

Update/Download file from FTP server to UNIX Server

HI Guys, I want to download files from FTP Server to my Unix server. I have tried , buy No Luck . Below Command i have tried. 1-Wget - Error "wget' not found" 2.ftp -n $HOST ...Not Working. 3.scp -i ftp://user:passowrd@hostname:21/ran/on/test.txt Any Suggestion (2 Replies)
Discussion started by: pareshkp
2 Replies

3. Solaris

FTP-ing files from Windows server to UNIX server

I need to transfer files from a Windows server to the Unix server and have to run some shell script on it to get the required output. Is it possible to transfer files from Windows server to unix server through any shell script? If so can you please help me with the details. Thanks in... (8 Replies)
Discussion started by: ssk250
8 Replies

4. Solaris

FTP log only shows FTP LOGIN FROM entry?

OS: Solaris 9 Configuration /etc/syslog.conf daemon.debug /etc/inetd.conf ftp stream tcp6 nowait root /usr/sbin/in.ftpd in.ftpd -A -l -d Found the ftp.log only generate those entries from other servers/hosts. Can we trace on all ftp entries either from/to the server? ... (6 Replies)
Discussion started by: KhawHL
6 Replies

5. Shell Programming and Scripting

Issue with Connecting to ftp server

Hi All, I have a ftp link as "ftp://ftp1.xyz.org/abc_ike/". The same thing is opening fine when I use a browser. But I am not sure how to connect to the above link from console. I used the command ftp ftp1.xyz.org The above is not working. I am not getting any error it simply stands still.... (1 Reply)
Discussion started by: machomaddy
1 Replies

6. UNIX Desktop Questions & Answers

Can Unix access Windows' File through Command Prompt in Unix

Hi all, I wish to know whether Unix can access window's file in Unix's terminal? Apart from that, how to copy files or share files between Window and Unix? I get to know of secure copy, however, my company's Unix does not support the feature of secure copy? Any other method for me to share/... (5 Replies)
Discussion started by: jessy83
5 Replies

7. Shell Programming and Scripting

Issue with script in linux but in unix works

I have this simple script: #! /usr/bin/sh #***************************************************************************** # *** get_input (question variable) *** #***************************************************************************** get_input () { echo "${BOLD}${1} : " read... (14 Replies)
Discussion started by: C|KiLLeR|S
14 Replies

8. UNIX for Dummies Questions & Answers

Issue: Compress in unix server and FTP to windows and open the compress file using Winzip

Hi All ! We have to compress a big data file in unix server and transfer it to windows and uncompress it using winzip in windows. I have used the utility ZIP like the below. zip -e <newfilename> df2_test_extract.dat but when I compress files greater than 4 gb using zip utility, it... (4 Replies)
Discussion started by: sakthifire
4 Replies

9. UNIX for Dummies Questions & Answers

How do I set the public keys up correctly for a migration from an HP-UNIX server to I

I am getting the error message "Permission denied (publickey). lost connection" when I attempt to do an scp migration. I know how to generate the public keys in both IIS and UNIX, and I believe they are both suppose to have the same public key - but where are they each suppose to be stored (I... (1 Reply)
Discussion started by: whs2k
1 Replies

10. Shell Programming and Scripting

Works from bash prompt, but not from script!

I'm trying to use unison from bash on windows with cygwin. I don't know if this is a cygwin question, bash question or unison question. Since I always get reprimanded by the cygwin mailing list for assuming it is a cygwin problem, I'll assume it is a bash question. The following commands work... (7 Replies)
Discussion started by: siegfried
7 Replies
Login or Register to Ask a Question