How to create a bash script to check the SSH connection?

Posted by chutsu on Stack Overflow See other posts from Stack Overflow or by chutsu
Published on 2009-09-10T13:30:04Z Indexed on 2010/04/23 5:23 UTC
Read the original article Hit count: 247

Filed under:
|
|
|

I am in the process of creating a bash script that would log into the remote machines and create private and public keys.

My problem is that the remote machines are not very reliable, and they are not always up. I need a bash script that would check if the SSH connection is up. Before actually creating the keys for future use.

© Stack Overflow or respective owner

Related posts about bash

Related posts about ssh