File: null-host-key-verifier.rb

package info (click to toggle)
libnet-ssh-ruby 1.1.2-1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 3,472 kB
  • ctags: 2,465
  • sloc: ruby: 10,848; makefile: 17
file content (14 lines) | stat: -rw-r--r-- 298 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
module Net
  module SSH

    # The NullHostKeyVerifier simply allows every key it sees, without
    # bothering to verify. This mimics the pre-1.1 behavior of Net::SSH, but
    # is not very secure.
    class NullHostKeyVerifier
      def verify(arguments)
        true
      end
    end

  end
end