Ftp/scp Command Error


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Ftp/scp Command Error
# 1  
Old 09-13-2010
Question Ftp/scp Command Error

Hi,

How to use ftp/scp command with password containing @ symbol.

Ex: ftp xyz:xyz@sun@11.211.111.11:/export/backups/

Exception I got: unknown host or invalid literal address

Note: I dont want to change the password.

Regards,
Vinodh' Kumar
# 2  
Old 09-13-2010
try to replace @ by

Code:
%40

# 3  
Old 09-13-2010
Tried no luck same exception.
# 4  
Old 09-13-2010
Quote:
ftp xyz:xyz@sun@11.211.111.11:/export/backups/
I don't know where this syntax came from because the "ftp" command does not have a syntax to provide the username, password or directory name on the command line. This is unix not Internet Explorer or something?


Assuming this is unix.
If you can log in manually, it can usually be automated. Not clear from the above command line which field is which?

Example logging in manually to test the fields.
substitute your values for "username" "password" and "directory".

Code:
ftp -n 10.13.10.5
user username password

cd directory

dir
bye

# 5  
Old 09-13-2010
Okay here it goes-

Code:
scp username:password@host:/export/backups/

password will be as xyz@xyz.
# 6  
Old 09-13-2010
scp does not let you provide the password in such a fashion(or for that matter, in any noninteractive way). Have you read the manual pages for any of these commands?

If you want to login noninteractively with scp, you can use shared keys instead of passwords. This is an authentication method that's actually meant to be noninteractive.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

help with scp command

Can someone please help me with what is wrong with this command? scp oracle@hrkpd124:/u01/app/oracle/rdbms/admin/dpoo.html root@hrkpmgmt:/export my intention is to copy the file dopp.html from the server hrkpd124 to the server hrkpmgmt but i am getting the error... (3 Replies)
Discussion started by: dollypee
3 Replies

2. Shell Programming and Scripting

FTP - SCP

Hi Team, When an FTP is success, code 226 is returned. Is there a possibility of return of code 226, when a part of file is transmitted to remote server. SCP do not return any codes but exit with status 0. This is what i found after executing SCP with verbose option. Is there a possibily... (2 Replies)
Discussion started by: forums123456
2 Replies

3. Shell Programming and Scripting

FTP/SFTP/SCP Files

Hi, I have a process which FTP's the files from one server to another server. Sometimes only half or a part of the file is delivered to remote location, but on the end log says FTP is successful. But ideally file in full is not delivered to remote location. How can i catch these kind of errors... (2 Replies)
Discussion started by: forums123456
2 Replies

4. Shell Programming and Scripting

Error using SCP command

Hi - I've a UNIX script which contains a scp command to copy a file to another server: scp <source path> <destination server:/path> (scp dir1/file1.dat server2:/dir1/subdir1) The job which is running this script is getting failed with error message "Remote copy Failed - Error Code: 7". When... (0 Replies)
Discussion started by: salselor
0 Replies

5. UNIX for Advanced & Expert Users

problem while doing Large file transfer thru Scp and FTP

Hi , I want to transfer one file having 6GB(after compression) which is in .cpk format from one server to other server. I tried scp command as well as FTP and also split the file then transfer the files thru scp command. At last i am facing the data lost and connection lost issue. Generally it... (2 Replies)
Discussion started by: Sumit sarangi
2 Replies

6. Shell Programming and Scripting

Help with SCP command

Hi, I have around 100 files which are aroun 10 MB in size and need to SCP all those files to another machine. Could you please suggest which way is efficient to do? 1. Gzip each file and transfer one by one. 2. Tar all the files together and then gzip it and send one HUGE file. Basicaly... (3 Replies)
Discussion started by: robinbannis
3 Replies

7. UNIX for Dummies Questions & Answers

SCP -r from Secure FTP site

Hi all, My problem is simple. I would like to download the contents of a directory on an ftp site. I can access the site through windows, but there are many files and it would be too tedious to click and download each file. Thus, I am trying to use scp -r... (5 Replies)
Discussion started by: cpabrego
5 Replies

8. Shell Programming and Scripting

Replace FTP with SCP

Hi All, I was using FTP for transferring files from remotemachine. Code below: # FTP for Customercare log #************************* cd $TRACKING_LOGDIR ftp -n $CUSTCARE_SERVER << END_INPUT >> $TRACKING_LOGDIR/ftp_custcare.log 2>&1 user $CUSTCARE_USER $CUSTCARE_PWD asc cd... (3 Replies)
Discussion started by: subin_bala
3 Replies

9. Shell Programming and Scripting

Modify FTP script to have SCP

Hi, I have an existing FTP script and I am trying to modify this to do SCP rather than FTP. I checked the man help in SCP and still having a hard time doing this... Current FTP script.. ftp -n << EOF > $LOG_FILE verbose open ${SERVER} $LOGON cd ${REMOTE_FILE_PATH} get... (2 Replies)
Discussion started by: madhunk
2 Replies

10. UNIX for Dummies Questions & Answers

help on SCP command

Total unix newbie needs help:Need to SCP files to a WINDOWS NT server,but giving me some problems: REPOSITORY=/usr/psoft/fs600srv/reports/HR /usr/local/bin/scp -p -a $REPOSITORY/HR.glpccd*.unl Administrator@10.84.124.6:/Temp When I execute the script, it is giving me this error. ... (3 Replies)
Discussion started by: starla0316
3 Replies
Login or Register to Ask a Question