How can I disable SSH access to my Linux app service

Abdush Samad Miah 0 Reputation points
2023-08-29T21:25:13.12+00:00

Hi,

How can I disable the SSH access to a Linux app service?

I know that the SSH access is configured mainly for debugging and diagnostic purposes, but I'd like to know how I can disable this for compliance purposes.

Thanks

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

1 answer

Sort by: Most helpful
  1. Ryan Hill 30,281 Reputation points Microsoft Employee Moderator
    2023-08-30T01:12:02.0166667+00:00

    Hi @Abdush Samad Miah

    Linux app services use blessed images from oryx. You can't adjust SSH on these images and there isn't a feature available that allows you to disable. What you can do, however, is use configure a custom container and in the base image, don't enable the ssh server to run or expose the 2222 port.


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.