error : ssh conn close

naiyan 20 Reputation points
2024-06-18T10:49:23.9+00:00

I have created an App Service instance
Whenever I'm doing SSH for it, its always show the below error
ssh

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,878 questions
0 comments No comments
{count} votes

Accepted answer
  1. Srinud 2,530 Reputation points Microsoft Vendor
    2024-06-20T10:14:15.8366667+00:00

    Hi naiyan,

    Thank you for reaching out to us on Microsoft Q&A forum.

    To elaborate on this, there may be multiple reasons for the inability to use the SSH feature in Kudu.

    The most common cause of an inability to SSH into a container is either that 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 first do the following:

    • Ensure that the Web App is currently running.
    • Ensure that the Kudu site is currently running.

    If your Web App is not running and won't start, check the Docker log. This is helpful in troubleshooting your site when it doesn't start or if it's restarting. There are different ways to access Docker logs:

    1. Docker logs appear on the Container Settings page in the portal.
    2. You can find the Docker log in the /LogFiles directory. You can access this via the Kudu (Advanced Tools) Bash console or by using an FTP client to access it.
    3. You can use the API to download the current logs.

    You may refer to the blog Things You Should Know: Web Apps and Linux for more details on this.

    If the Kudu site isn't running, please let me know.

    Note: Whether you're using SSH via a web browser or using the TCP tunnel method, SSH connections are always hitting an endpoint in the Kudu container. If the Kudu container isn't running, you won't be able to SSH into the app's container.

    Also, it could be a browser-related issue or a backend issue. Starting an SSH session in a different browser might help. Try starting an SSH session by running

    az webapp ssh -n MyUniqueAppName -g MyResourceGroup in the Azure CLI

    Please check the runtime stack within the App Service configuration to ensure it is supported and always on. If it is not supported, select the appropriate supported runtime stack.

    If the information is helpful, please accept the answer by clicking the "Upvote"/ "Accept Answer" on the post.

    If you are still running into issues, kindly attach the screenshots for reference and please let us know in the comments. We are glad to help you.


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.