The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

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




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #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