diff options
author | nopedial <sam@arahant.net> | 2016-02-06 18:28:22 +0000 |
---|---|---|
committer | nopedial <sam@arahant.net> | 2016-02-06 18:28:22 +0000 |
commit | 3e28af7dcbfafbd5cf1f7e2cbfae984176113a3b (patch) | |
tree | 704166ad0baef94b553c9b2f9701a422167d9d86 /lib/oxidized/input/ssh.rb | |
parent | 683d95bb62ef30e5902042ea2b68b79ceb944475 (diff) |
set TERM
Diffstat (limited to 'lib/oxidized/input/ssh.rb')
-rw-r--r-- | lib/oxidized/input/ssh.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |