From: Brian Candler Date: 2011-10-26T20:24:06+09:00 Subject: Re: How to SSH interactive Session I'd suggest using Net::SSH::Telnet. This is a wrapper around Net::SSH which gives an API very similar to Net::Telnet - this in turn lets you send commands and match on the responses with regexps to decide what to do next. It also means you can write code which works with both telnet and ssh. -- Posted via http://www.ruby-forum.com/.