Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

Overriding Net::SSH::Config.default_files is not the best strategy as of today

Abierto
#422 0 comentarios 1 reacción 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
35/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
ruby
Área
devops

Línea de trabajo

Empieza leyendo lib/sshkit/backends/netssh.rb en la línea enlazada y compara cómo SSHKit sobrescribe Net::SSH.default_files con la opción :config descrita en el issue. Revisa net-ssh issue #587 para entender el comportamiento de ProxyJump. Se considera hecho cuando se haya establecido qué ruta de configuración debería usar SSHKit y se haya confirmado que ProxyJump funciona sin la discrepancia de configuración actual.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

Hi, I'm currently unable to use the ProxyJump config with sshkit, due to this issue:

https://github.com/net-ssh/net-ssh/issues/587

sshkit will override Net::SSH.default_files here:

https://github.com/capistrano/sshkit/blob/158c2867071e015a117e188d1a0ee7b579c9b24e/lib/sshkit/backends/netssh.rb#L13

By the way, is there any reasons to do that instead of something simpler like:

Net::SSH::Config.default_files << File.join(Dir.pwd, '.ssh/config')

Either way, net-ssh doesn't work the same way when the :config option is used in Net::SSH.start and when passed to default_files, as you could see in the issue I mentioned above.

Currently I'm in a rush to try to meet some tight deadlines for a new project I started and it will last a few months at least. If I were to find some time to contribute it would be more likely to provide some patch to sshkit to use the :config option instead of overriding default_files as it seems a simpler/quicker change for someone new to both projects, in my opinion. Before I do so, I'd like to check on your opinion. Is there anyone here that is comfortable with net-ssh source and would be willing to contribute to it by providing the "-F" option to the ssh client for each of those default_files? Otherwise, would you be willing to accept a patch that would change the current approach in sshkit so that this default configuration would be passed to the :config option instead of overriding default_files?

Thanks for your time to read all of this :)

Lenguaje dominante
Ruby
Estrellas
1.2k
Forks
257
Métricas de merge de PR
Sin PR fusionados en 30 d

Guía de contribución

Abrir la guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de capistrano/sshkit

Todos los issues de capistrano/sshkit

Issues similares

Más issues de Ruby

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.