The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



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
conversion infyanurag Shell Programming and Scripting 3 06-02-2008 02:04 AM
.xls to .csv conversion neil546 Shell Programming and Scripting 7 07-17-2007 04:55 AM
FTP to SFTP conversion shihabvk Shell Programming and Scripting 0 03-28-2007 07:05 AM
Hex Conversion insania Shell Programming and Scripting 2 03-20-2007 03:15 PM
conversion rajan_ka1 UNIX for Advanced & Expert Users 1 03-14-2006 07:56 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 03-28-2007
shihabvk shihabvk is offline
Registered User
  
 

Join Date: May 2005
Posts: 54
FTP to SFTP conversion

Hi,
I have the following ftp code to check the status of communication channel :

/bin/ftp -i -v -n -B 64 $HOST <<END 2>&1 > $LOGFILE
user $user $password
bye
END

I need to re write exactly the same way with SFTP using authentication keys, I know how to do SFTP with authentication keys.

But my problem is, when the authentication fails, it asks for the password, which I dont want, else I need to write the error in the $LOGFILE.

Could you please explain me how to do it, without using script file for SFTP

Regards
Shihab
  #2 (permalink)  
Old 03-28-2007
Perderabo's Avatar
Perderabo Perderabo is offline Forum Staff  
Unix Daemon
  
 

Join Date: Aug 2001
Location: Ashburn, Virginia
Posts: 9,131
Please review our rules and note:
(4) Do not 'bump up' questions if they are not answered promptly. No duplicate or cross-posting and do not report a post or send a private message where your goal is to get an answer more quickly.
  #3 (permalink)  
Old 03-30-2007
shihabvk shihabvk is offline
Registered User
  
 

Join Date: May 2005
Posts: 54
Quote:
Originally Posted by Perderabo
Please review our rules and note:
(4) Do not 'bump up' questions if they are not answered promptly. No duplicate or cross-posting and do not report a post or send a private message where your goal is to get an answer more quickly.
I am really sorry.. the duplicate posting was by mistake.. I really dont know how it happened
  #4 (permalink)  
Old 03-30-2007
shihabvk shihabvk is offline
Registered User
  
 

Join Date: May 2005
Posts: 54
SFTP ssh_config File not working

Thanks awk , for the link, it gave me lot of information.
I have one more issue,
When I am trying to connect using sftp for the first time, it gives me error :

The authenticity of host can't be established
RSA key fingerprint is abd:adfasd
Are you sure you want to continue connecting (yes/no)?


now when I say yes, it connects and enters the entry in the known_hosts file.I dont want this to happen, as I need to automate every thing, without any user intervension. How is it possible?
I created a config file and connected with that
sftp -F /home/shihab/ssh_config user@IP
. still not working
also i tried with this also :
sftp -oCheckHostIP=yes -o HashKnownHosts=no user@IP

but no hope
am i wrong any where?
Can anybody help me.

Thanks
Shihab
  #5 (permalink)  
Old 03-28-2007
awk awk is offline
Registered User
  
 

Join Date: Feb 2007
Posts: 134
Quote:
Originally Posted by shihabvk
Hi,
I have the following ftp code to check the status of communication channel :

/bin/ftp -i -v -n -B 64 $HOST <<END 2>&1 > $LOGFILE
user $user $password
bye
END

I need to re write exactly the same way with SFTP using authentication keys, I know how to do SFTP with authentication keys.

But my problem is, when the authentication fails, it asks for the password, which I dont want, else I need to write the error in the $LOGFILE.

Could you please explain me how to do it, without using script file for SFTP

Regards
Shihab
See http://ask-leo.com/how_can_i_automat...o_servers.html for a rather involved discussion.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 11:58 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0