Module: SshHelper
- Included in:
- TmcHelpers
- Defined in:
- lib/helpers/tmc_helpers/ssh_helper/ssh_helper.rb
Defined Under Namespace
Classes: TmcSsh
Instance Method Summary collapse
-
#ssh_to(host, username, password: nil) ⇒ Object
Public: Starts a new SSH session to the given host.
Instance Method Details
#ssh_to(host, username, password: nil) ⇒ Object
Public: Starts a new SSH session to the given host.
host - String host name or IP. username - String username to use. password - String password to use (default: nil).
Returns nothing.
16 17 18 19 20 |
# File 'lib/helpers/tmc_helpers/ssh_helper/ssh_helper.rb', line 16 def ssh_to(host, username, password: nil) ssh = TmcSsh.new(self) ssh.start(host, username, password: password) ssh end |