Jupyterhub in local VM cant SSH through IDEs

Hello, I have the following setup.
In a local VM i have created multiple docker containers. One is for the JupyterHub that has a docker spawner that creates JupyterLab containers and because I need to ssh into these containers I have also created a jupyterhub-ssh container that manages ssh connections for every user. The problem is that even though I can ssh via a terminal, I am not able to connect via IDEs (VSC and PyCharm Pro). After some research, I can see that jupyterhub-ssh is the one to blame (asyncssh.misc.ProtocolError: Channel not open for sending). Can anyone help?