From: Walle Wallen on 25 May 2010 15:54 Hey, I'm trying to determent the status of a sftp and ssh connection to a specific server. I'm currently using Net::SFTP and Net::SSH. Is there any similar way of doing this as with the Net::Http, were I'm using Net::Http.get_response().code. I would like to extract the server response, "Net::SSH::AuthenticationFailed" etc without using rescue. Any idea? //Walle -- Posted via http://www.ruby-forum.com/.
|
Pages: 1 Prev: Problem with Ruby 1.9, HTTPS and OpenSSL Next: In-code data |