Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do I provide additional options such as StrictHostKeyChecking or CheckHostIP #196

Closed
Jaff opened this issue Nov 24, 2014 · 1 comment

Comments

@Jaff
Copy link

Jaff commented Nov 24, 2014

If I need to provide some parameters like I can with bash protocol, like:
ssh -o StrictHostKeyChecking = no "some command"

Ideally, I would like to do:
Net::SSH.start('some_host', 'user',
:options => ['CheckHostIP no',
'StrictHostKeyChecking no'],
:password => "password") do |ssh|
... some commands
end

@punkle
Copy link
Contributor

punkle commented Nov 26, 2014

Hi @Jaff have you tried the paranoid option?

Net::SSH.start('some_host', 'user', :paranoid => false, :password => "password") do |ssh|
    # some commands
end

From the documentation http://net-ssh.github.io/net-ssh/classes/Net/SSH.html#method-c-start

:paranoid => either false, true, :very, or :secure specifying how strict host-key verification should be (in increasing order here)

@mfazekas mfazekas closed this as completed Mar 5, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants