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
Script to check connectivity kukretiabhi13 Shell Programming and Scripting 3 07-17-2008 09:39 AM
SSH Connectivity script lorcan UNIX for Advanced & Expert Users 5 03-06-2008 06:38 AM
verifying tape backups coffeebrown UNIX for Dummies Questions & Answers 0 07-31-2007 04:13 PM
Hummingbird Connectivity Division Releases Connectivity 2008 (EContent Magazine) iBot UNIX and Linux RSS News 0 06-17-2007 07:37 PM
Verifying C++ program suman_jakkula High Level Programming 1 09-12-2006 10:35 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 11-18-2008
omd omd is offline
Registered User
  
 

Join Date: Nov 2008
Posts: 3
Verifying SSH connectivity in a script

Hi everyone,

I'm trying to write a korne shell script that takes the IP address of a remote server as an argument and logs into that server if RSA key has been setup properly, otherwise exits if RSA key is not set for that server.

I don't want the script to get stuck with Password prompt from the remote server if the RSA key is not correctly set for it.

How do I do that?

Thanks,
omd
  #2 (permalink)  
Old 11-18-2008
omd omd is offline
Registered User
  
 

Join Date: Nov 2008
Posts: 3
Never mind

I needed to set the BatchMode option to yes in ssh_config.

"If set to "yes'', passphrase/password querying will be
disabled..."
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 04:14 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