Introduction

ssh pour atteindre un PC derrière une box (entre autre)
Largment recopié de cet article.
Recopié ici car trop de site disparaissent.

Ajouter un user

adduser help

On définit un mot de passe que l’on donnera à la personne à aider.

Modifier la configuration de son serveur SSH

Dans le fichier /etc/ssh/sshd_config

Match User help
   #AllowTcpForwarding yes
   X11Forwarding no
   PermitTunnel no
   GatewayPorts no
   AllowAgentForwarding no
   PermitOpen localhost:60000
   ForceCommand echo 'Only reverse port forwarding allowed'

Se connecter à son IP

ssh -R 60000:localhost:22 help@mon_ip

Atteindre l'utilisateur connecté

En supposant que l’utilisateur à aider ce nomme alice

ssh -p 60000 alice@localhost