Last modified by Alexandru Pentilescu on 2024/07/16 22:44

From version 17.1
edited by Alexandru Pentilescu
on 2024/07/16 22:27
Change comment: There is no comment for this version
To version 19.1
edited by Alexandru Pentilescu
on 2024/07/16 22:30
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -238,4 +238,6 @@
238 238  
239 239  The script above will simply forward all incoming SSH connections that originally came to the host server and sends them to the docker container (specifically to localhost port 2200 which, according to the yaml file above, is mapped to port 22 inside the container). There, the container will run the command that was originally sent to the host machine inside of itself and return the result to the original outside client.
240 240  
241 -You may be thinking "But how does the host SSH server know when to run this script to forward requests inside the container and when not to forward requests?". Basically, this is done via
241 +You may be thinking "But how does the host SSH server know when to run this script to forward requests inside the container and when not to forward requests?". Basically, this is done via the /home/git/.ssh/authorized_keys file.
242 +
243 +When we added all those public keys at step [[#HGenerateaproperpublic2FprivatekeypairforalltheaccountsthatneedtousegitviaSSHwith]]