From 3e28af7dcbfafbd5cf1f7e2cbfae984176113a3b Mon Sep 17 00:00:00 2001 From: nopedial Date: Sat, 6 Feb 2016 18:28:22 +0000 Subject: set TERM --- lib/oxidized/input/ssh.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/oxidized/input/ssh.rb b/lib/oxidized/input/ssh.rb index aab1dc8..e7296b5 100644 --- a/lib/oxidized/input/ssh.rb +++ b/lib/oxidized/input/ssh.rb @@ -86,7 +86,7 @@ module Oxidized @output << data @output = @node.model.expects @output end - ch.request_pty do |_ch, success_pty| + ch.request_pty (opts={:term=>'vt100'}) do |_ch, success_pty| raise NoShell, "Can't get PTY" unless success_pty ch.send_channel_request 'shell' do |_ch, success_shell| raise NoShell, "Can't get shell" unless success_shell -- cgit v1.2.1