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
authorized_keys and passwordless login mcrouch_2003 Linux 6 05-09-2008 10:28 AM
Will Password change affect authorized_keys? oracleuser SUN Solaris 2 01-28-2008 12:26 PM
monitoring SSH authorized_keys prvnrk UNIX for Advanced & Expert Users 1 07-23-2007 07:16 AM
monitoring SSH authorized_keys prvnrk Shell Programming and Scripting 0 07-19-2007 08:10 AM
sftp from unix to NT anthonykomma HP-UX 1 09-08-2006 10:00 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-24-2008
Registered User
 

Join Date: May 2007
Posts: 54
Stumble this Post!
sftp using authorized_keys in unix

I am creating public and private key for sftp in ksh.

then copy the name1.pub file into /.ssh/authorized_keys directory in remote server.

Now my question is how to write that script which do not ask me for the password from prompt.

please help.

thanks in advance.
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 03-24-2008
Registered User
 

Join Date: Apr 2002
Location: Dallas, TX
Posts: 53
Stumble this Post!
I'm not exactly sure of the question. The whole point of using keys with ssh is so that you do not have to provide a password. If this is not setup correctly then you will be prompted for a password.

If you try "ssh <remote-host> hostname" are you prompted for a password? If so doublecheck that you have your keys installed correctly. Also check your permissions. The keys will not work if your directory tree is world readable.

If the ssh command works with no password then you are setup correctly. Next, to run in a script try the scp command to move files back and forth. (man scp)
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 07:50 AM.


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