[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [hobbit] monitoring ssh



On Thursday 23 August 2007, Dan Simoes wrote:
> I know how to monitor the service availablity on port 22.
> I'm wondering if anyone has actually made a script that connects, logs in,
> writes a file (say with scp) and only then returns a green status.
> We got burned with an ssh keys problem so I have to deploy something like
> this.
Take a look at expect.  You can simulate all kind of interactive command line 
stuff.  I use this to remote connect with ssh / telnet and to transfer files 
with scp.


Stef