Outils pour utilisateurs

Outils du site


auto-heber:yuno-connexion-root

Différences

Ci-dessous, les différences entre deux révisions de la page.


auto-heber:yuno-connexion-root [2024/01/28 23:48] (Version actuelle) – créée - modification externe 127.0.0.1
Ligne 1: Ligne 1:
 +Quand je suis sur ma machine l'invite est
  
 +<code>d@d-nuc:~$</code>
 +
 +Connexion ssh sur le rpi (l'adresse IP a été lue dans la configuration du routeur)
 +
 +<code>
 +d@d-nuc:~$ ssh root@192.168.0.106
 +@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
 +@    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     @
 +@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
 +IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
 +Someone could be eavesdropping on you right now (man-in-the-middle attack)!
 +It is also possible that a host key has just been changed.
 +The fingerprint for the ECDSA key sent by the remote host is
 +SHA256:RFERDrKChz1dwmi9eNmzCCRyNkI2oc4LL103h36JkAI.
 +Please contact your system administrator.
 +Add correct host key in /home/d/.ssh/known_hosts to get rid of this message.
 +Offending ECDSA key in /home/d/.ssh/known_hosts:2
 +  remove with:
 +  ssh-keygen -f "/home/d/.ssh/known_hosts" -R "192.168.0.106"
 +ECDSA host key for 192.168.0.106 has changed and you have requested strict checking.
 +Host key verification failed.
 +</code>
 +
 +Ceci arrive quand pour la même machine on a déjà établi une connexion sécurisée (au cours de mes essais précédents. On fait donc ce qui est demandé (//copié en surlignant avec la souris et clic droit au bon endroit : c'est une manip très utile qu'il faut connaître, au lieu de retaper on fait beaucoup de copié collé. De même il faut savoir qu'avec la flèche vers le haut du clavier on remonte dans l'historoque des commandes, super pratique//)
 +
 +<code>
 +d@d-nuc:~$  ssh-keygen -f "/home/d/.ssh/known_hosts" -R "192.168.0.106"
 +# Host 192.168.0.106 found: line 2
 +/home/d/.ssh/known_hosts updated.
 +Original contents retained as /home/d/.ssh/known_hosts.old
 +</code>
 +
 +On se connecte par ssh en répondant yes à la question et en fournissant le mot de passe par défaut : yunohost puis en donnant un nouveau mot de passe de qualité
 +
 +<code>
 +d@d-nuc:~$ ssh root@192.168.0.106
 +The authenticity of host '192.168.0.106 (192.168.0.106)' can't be established.
 +ECDSA key fingerprint is SHA256:RFERDrKChz1dwmi9eNmzCCRyNkI2oc4LL103h36JkAI.
 +Are you sure you want to continue connecting (yes/no)? yes
 +Warning: Permanently added '192.168.0.106' (ECDSA) to the list of known hosts.
 +root@192.168.0.106's password: 
 +You are required to change your password immediately (root enforced)
 +Linux raspberrypi 4.14.66-v7+ #1137 SMP Fri Aug 24 16:36:53 BST 2018 armv7l
 +
 +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.
 +Changing password for root.
 +(current) UNIX password: 
 +Enter new UNIX password: 
 +Retype new UNIX password: 
 +-bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
 +-bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
 +======================================================================
 +
 + Congratulations on setting up your YunoHost server !
 +
 + To finish the installation, you should run the postinstallation.
 + You can find documentation about it on :
 +     https://yunohost.org/postinstall
 +
 + You can run it from the command line interface with :
 +     $ yunohost tools postinstall
 +
 + Or from a browser by accessing one of your local IP :
 +     192.168.0.106
 +     
 +======================================================================
 +
 +Wi-Fi is disabled because the country is not set.
 +Use raspi-config to set the country before use.
 +
 +</code>
 +
 +On clos la session
 +
 +<code>
 +root@raspberrypi:~# exit
 +logout
 +Connection to 192.168.0.106 closed.
 +</code>
 +
 +On s'assure que le mot de passe fonctionne
 +
 +<code>
 +d@d-nuc:~$ ssh root@192.168.0.106
 +root@192.168.0.106's password: 
 +Linux raspberrypi 4.14.66-v7+ #1137 SMP Fri Aug 24 16:36:53 BST 2018 armv7l
 +
 +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.
 +-bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
 +-bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
 +======================================================================
 +
 + Congratulations on setting up your YunoHost server !
 +
 + To finish the installation, you should run the postinstallation.
 + You can find documentation about it on :
 +     https://yunohost.org/postinstall
 +
 + You can run it from the command line interface with :
 +     $ yunohost tools postinstall
 +
 + Or from a browser by accessing one of your local IP :
 +     192.168.0.106
 +     
 +======================================================================
 +
 +Wi-Fi is disabled because the country is not set.
 +Use raspi-config to set the country before use.
 +</code>
 +
 +quand on voit dans la console l'invite
 +<code> root@raspberrypi:~#  </code> c'est que la console est connectée au raspberry
 +
 +On se déconnecte du rpi et on se retrouve dans ma machine 
 +
 +<code>
 +root@raspberrypi:~# exit
 +logout
 +Connection to 192.168.0.106 closed.
 +d@d-nuc:~$ 
 +</code>
 +</code>
 +
 +On peut passer à la suite [[auto-heber:yuno-note-installation|Première installation de yunohost]]
auto-heber/yuno-connexion-root.txt · Dernière modification : 2024/01/28 23:48 de 127.0.0.1