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 here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
authentication of new user dwallace Forum Support Area for Unregistered Users & Account Problems 1 02-22-2008 05:37 PM
passwordless authentication of SFTP script uday.shankar Shell Programming and Scripting 11 01-11-2008 11:54 AM
Non-interactive user switch to root stevefox Shell Programming and Scripting 5 11-20-2007 04:08 PM
How to hide user inputted text for interactive unix shell script? patrickpang Shell Programming and Scripting 1 04-04-2006 05:42 PM
User Authentication meyersp SUN Solaris 3 09-12-2003 05:39 AM

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-10-2006
Registered User
 

Join Date: Mar 2006
Posts: 2
SFTP- Non-interactive user authentication

Hi All,

sftp -b script.txt <hostname>

user-authentication through non-interactive way is desired. But, its failing to do so.

Could anyone kindly advise.

Thanks for any/all help at the earliest.

Regards,
Dheeraj.
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 03-10-2006
blowtorch's Avatar
Supporter
 
Join Date: Dec 2004
Location: Singapore
Posts: 2,323
What is failing? You need to be more specific. What error messages? Has the key exchange been carried out? Also, your command is not enough for key based authentication; you have not specified the user to connect as.
Try this:
Code:
sftp -b batch_filename user@host
Reply With Quote
Google UNIX.COM
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 03:37 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0