Open rits1902 opened 2 months ago
Muito obrigado Rodrigo, thanks indeed. It seems that this is setup is not working as expected (the idea is to reuse ssh connections in order to make the re-connections faster). The code of this is in: https://github.com/living-atlases/la-toolkit-backend I'll try to add a fix for the next release.
Describe the bug I tried to perform a connection test in the ala-toolkit on four machines that I created to install some services. However, I was having connection issues with the API that handles the connection. I noticed that in the file api/controllers/gen-ssh-conf.js, ControlMaster and ControlPath were being configured. With this configuration, it was not possible to perform the connection test on the machines I created, which are Ubuntu 18.04. I made a copy of all the .js files in the controllers directory and commented out lines 21 and 22 of the gen-ssh-conf.js file. This way, it generated the /home/ubuntu/.ssh/config file without those entries. I mounted the volumes of the controllers files in docker-compose.yaml and resolved the issue in question.
ScreenshotsAdd screenshots to help explain your problem.
Desktop (please complete the following information):
Logs
ubuntu@la-toolkit:~/ansible/la-inventories$ ssh -T server-xxxxxxxxxxxx sudo hostname muxserver_listen: link mux listener /home/ubuntu/.ssh/server-xxxxxxxxxxxx-22-ubuntu.sock.0Xjsi76eOlQsldlF => /home/ubuntu/.ssh/server-xxxxxxxxxxxx-22-ubuntu.sock: Bad file descriptor