Thanks for asking question!
Could you please confirm how are you trying to open SSH session, To open SSH session in browser paste the following URL into your browser and replace <app-name> with your app name: https://<app-name>.scm.azurewebsites.net/webssh/host
Also, You're required to authenticate with your Azure subscription to connect. Once authenticated, you see an in-browser shell, where you can run commands inside your container.
Refer to this document: Open an SSH session to a Linux container in Azure App Service
Also, To add further the most common cause of an inability to SSH into a custom container is either the Web App isn't running or the Kudu container isn't running. Therefore, if you are unable to SSH into your app container, you should check.
- Ensure that the Web App is currently running.
- Ensure that the Kudu site is currently running.
Please let us know.