![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Help needed for Shell Script..... | pulkit | Shell Programming and Scripting | 0 | 02-22-2008 07:25 AM |
| shell script Help Needed!! | smallu | UNIX for Dummies Questions & Answers | 0 | 01-15-2008 08:40 PM |
| 2 ftps in script, second won't go to output file | brdholman | UNIX for Dummies Questions & Answers | 4 | 11-15-2007 03:18 PM |
| Help needed in Shell Script | nvuradi | Shell Programming and Scripting | 1 | 10-24-2007 05:56 AM |
| shell script help needed | fastgoon | Shell Programming and Scripting | 3 | 07-17-2006 04:24 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Help needed in shell script for FTPS
Hi,
Im trying to build a script to download files from a secure FTP site. When I run the command ftps <host_address> in the unix prompt, it asks username and password, and then prompts the following question. Do you want to trust this certificate? [y|n|a](y): From the prompt, I am able to type 'y'(Yes) and then it is connecting to the FTP site without any issue. When i run the shell script which contains the same command (ftps <host_address>), it prompts the same question. Since I am not able to enter during execution of the script, it says 'Connection aborted' and then comes out of the program. Could anyone tell me how to avoid this prompt or How to enter 'y' during execution, Do i need to pass it as an argument in the command line? Thanks, Vidhya |
|
||||
|
Is it an actual certificate or an entry to known hosts that it is complaining about?
Have a read of this... SFTP I would expect that you need an entry in your .ssh/known_hosts for the server and the server needs your public key in it's .ssh/authorized_keys for the user you want to log in as. You would also need to provide a non-password protected private key to the sftp client. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|