File: test_freesshd.rb

package info (click to toggle)
ruby-net-ssh 1%3A6.1.0-2%2Bdeb11u1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 1,884 kB
  • sloc: ruby: 15,997; makefile: 4
file content (11 lines) | stat: -rw-r--r-- 300 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
require_relative '../common'
require 'net/ssh'

class TestPageapnt < NetSSHTest
  def test_connect
    ret = Net::SSH.start("localhost", "foo", password: 'foo', port: '2223') do |ssh|
      ssh.exec! "cmd /c echo hello from windows!"
    end
    assert_equal "hello from windows!\r\n", ret
  end
end