![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | 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 here. |
|
|
||||
| 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 |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
|||
|
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. |
| Forum Sponsor | ||
|
|
|
|||
|
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) |
|||
| Google The UNIX and Linux Forums |