Je fais des essais:
J'ai remis le bash à rssh dans passwd
revssh:x:1003:1003::/home/revssh:/bin/bash
Un 1er essai nous montre que la connexion ne se fait pas, malgré le changement dans passwd:
sudo ssh -n revssh@sauvegarde -p1957
Pseudo-terminal will not be allocated because stdin is not a terminal.
Linux raspi-thierry 4.19.75+ #1270 Tue Sep 24 18:38:54 BST 2019 armv6l
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
thierry@raspi-isabelle:~ $
Alors j'ai retiré l'option -n
sudo ssh revssh@sauvegarde -p1957
Linux raspi-thierry 4.19.75+ #1270 Tue Sep 24 18:38:54 BST 2019 armv6l
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
revssh@raspi-thierry:~ $
Passage réussi. La clé a fonctionné. Tout est OK dans la liaison.
J'ai déconnecté le client puis j'ai réessayé avec l'option -n
thierry@raspi-isabelle:~ $ sudo ssh -n revssh@sauvegarde -p1957
Pseudo-terminal will not be allocated because stdin is not a terminal.
Linux raspi-thierry 4.19.75+ #1270 Tue Sep 24 18:38:54 BST 2019 armv6l
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
thierry@raspi-isabelle:~ $
J'ai encore le problème avec stdin ??? Il y a bien un souci de ce côté là, mais je ne suis pas assez compétent.
Autre essai:
sudo ssh -R \*:1922:192.168.8.56:22 revssh@sauvegarde -p1957
Linux raspi-thierry 4.19.75+ #1270 Tue Sep 24 18:38:54 BST 2019 armv6l
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Sun Feb 23 18:40:34 2020 from 37.167.27.184
revssh@raspi-thierry:~ $
Passage réussi. Je test dans l'autre sens c'est à dire depuis raspi-thierry
ssh -p 1922 localhost
Linux raspi-isabelle 4.19.93+ #1290 Fri Jan 10 16:34:37 GMT 2020 armv6l
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Sun Feb 23 19:10:46 2020 from 192.168.8.56
isabelle@raspi-isabelle:
Le REVERSE FONCTIONNE.
J'essaie de remettre le rssh à revssh dans passwd
sudo ssh -R \*:1922:192.168.8.56:22 revssh@sauvegarde -p1957
revssh@sauvegarde's password:
Permission denied, please try again.
revssh@sauvegarde's password:
^c
Impossible de créer la connexion. Je ne suis plus conforme au tuto don je me suis inspiré. Là, je ne pige plus comment le tuto a été réalisé. Mais qu'est ce qu'il me manque ?