Skip to content

ArgumentError: invalid option(s): known_hosts with net-ssh 3.0.2 #357

Closed
@mattbrictson

Description

@mattbrictson

I saw this reported on Stack Overflow, and it seems like a legitimate bug introduced in sshkit 1.11.0.

https://stackoverflow.com/questions/37865299/capistrano-error-invalid-optionss-known-hosts

To summarize: starting with sshkit 1.11.0, we now pass a :known_hosts option to net-ssh by default (see #339). Unfortunately it seems that not all versions of net-ssh allow this. And instead of ignoring the option, net-ssh raises this error, at least in net-ssh 3.0.2:

ArgumentError: invalid option(s): known_hosts

The solution seems to be to upgrade to net-ssh 3.1.1.

@byroot Does this bug report seem legitimate? What can we do to fix this issue (other than change our gemspec to require newer net-ssh, which seems drastic)?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions