Does this tool even work with a SSH key with a passphrase?

Abierto
#1,038 3 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
35/100
Tipo de issue
Error
Claridad
Necesita aclaración
Estado de actividad
Estancado
Stack tecnológico
python
Área
cli, networking

Línea de trabajo

Start by reproducing both commands from the issue and compare the passphrase prompt with the resulting remote command and exit code. No file or test is named; done means establishing the sshuttle session successfully with a passphrase-protected SSH key.

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

Descripción

I cannot find any command that accepts SSH key along with passphrase. Here are the commands I am trying but all of them failing.

sshuttle -r ubuntu@10.x.x.x 0/0 -vv
.
.
.
Authorized uses only. All activity may be monitored and reported.
                                                                 ubuntu@10.x.x.x: Permission denied (publickey).
c : fatal: failed to establish ssh session (2)

The following command accepts passphrase but fails miserably.

sshuttle -e 'ssh ubuntu@10.x.x.x -i key' -r ubuntu@10.x.x.x 0/0 -vv
. 
.
.
Authorized uses only. All activity may be monitored and reported.
Enter passphrase for key 'key':
                                bash: ubuntu@10.x.x.x: command not found
                                                                             c : fatal: server died with error code 127
    This error code likely means that we were unable to execute /bin/sh on the remote server. This can happen if /bin/sh does not exist on the server or if you are in a restricted shell that does not allow you to run programs specified with an absolute path. Try rerunning sshuttle with the --python parameter.
Lenguaje dominante
Python
Estrellas
13.6k
Forks
795
Merge medio
8 h 49 min
PR fusionados (30 d)
12

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

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 sshuttle/sshuttle

Todos los issues de sshuttle/sshuttle

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.