From: Dan Nachbar Date: 2011-08-27T02:03:12+09:00 Subject: Re: ssh login to a host On Aug 26, 2011, at 11:59 AM, Rick Tan wrote: > Hi, > > Can someone give me some advice on how to reliably check that a server > is alive and accepts ssh login? Have tried ping but that opens a small > window that ssh login is still not available. With 1.9.2 you can say - require 'socket' s = TCPSocket.open('myfavoritehost.com', 22) s.gets(3).eql? "SSH" Dan Nachbar