Skip to content

Commit c68869f

Browse files
committed
Refresh article
1 parent e0d85f0 commit c68869f

2 files changed

Lines changed: 30 additions & 22 deletions

File tree

articles/app-service/configure-linux-open-ssh-session.md

Lines changed: 30 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
---
22
title: SSH Access for Linux and Windows Containers
3-
description: You can open an SSH session to a Linux or a Windows container in Azure App Service. Custom Linux containers are supported with some modifications to your custom image. Custom Windows containers require no modifications to your custom image.
3+
description: Learn how to open an SSH session to a Linux or a Windows container in Azure App Service. Custom Linux containers are supported with some modifications to your custom image.
44
keywords: azure app service, web app, linux, windows, oss
55
author: msangapu-msft
66

77
ms.assetid: 66f9988f-8ffa-414a-9137-3a9b15a5573c
88
ms.topic: how-to
9-
ms.date: 01/28/2025
9+
ms.date: 02/12/2026
1010
ms.author: msangapu
1111
ms.custom: devx-track-azurecli, linux-related-content
1212
zone_pivot_groups: app-service-containers-windows-linux
@@ -21,21 +21,29 @@ ms.service: azure-app-service
2121

2222
[Secure Shell (SSH)](https://wikipedia.org/wiki/Secure_Shell) can be used to execute administrative commands remotely to a container. App Service provides SSH support directly into an app hosted in a Windows custom container.
2323

24-
Windows custom containers don't require any special settings for the [browser SSH session](#open-ssh-session-in-browser) to work. SSH sessions through Azure CLI are not supported.
25-
26-
![Linux App Service SSH](./media/configure-linux-open-ssh-session/app-service-linux-ssh.png)
24+
Windows custom containers don't require any special settings for the [browser SSH session](#open-ssh-session-in-browser) to work.
2725

2826
::: zone-end
2927

3028
::: zone pivot="container-linux"
3129

3230
[Secure Shell (SSH)](https://wikipedia.org/wiki/Secure_Shell) can be used to execute administrative commands remotely to a container. App Service provides SSH support directly into an app hosted in a Linux container (built-in or custom).
3331

34-
The built-in Linux containers already have the necessary configuration to enable SSH sessions. Linux custom containers require additional configurations to enable SSH sessions. See [Enable SSH](configure-custom-container.md?pivots=container-linux#enable-ssh).
32+
The built-in Linux containers already have the necessary configuration to enable SSH sessions. Linux custom containers require additional configurations to enable SSH sessions. To learn more, see [Enable SSH](configure-custom-container.md?pivots=container-linux#enable-ssh).
33+
34+
::: zone-end
35+
36+
:::image type="content" source="./media/configure-linux-open-ssh-session/app-service-ssh.png" alt-text="Screenshot that shows the App Service SSH.":::
37+
38+
::: zone pivot="container-windows"
39+
40+
SSH sessions through the Azure CLI aren't supported for Windows App Service plans. Only Linux App Service plans are supported.
3541

36-
![Linux App Service SSH](./media/configure-linux-open-ssh-session/app-service-linux-ssh.png)
42+
::: zone-end
43+
44+
::: zone pivot="container-linux"
3745

38-
You can also connect to the container directly from your local development machine using SSH and SFTP.
46+
You can also connect to the container directly from your local development machine by using SSH and SFTP.
3947

4048
::: zone-end
4149

@@ -45,23 +53,23 @@ You can also connect to the container directly from your local development machi
4553

4654
::: zone pivot="container-linux"
4755

48-
## Open SSH session with Azure CLI
56+
## Open SSH session with the Azure CLI
4957

50-
Using TCP tunneling you can create a network connection between your development machine and Linux containers over an authenticated WebSocket connection. It enables you to open an SSH session with your container running in App Service from the client of your choice.
58+
By using TCP tunneling, you can create a network connection between your development machine and Linux containers over an authenticated WebSocket connection. You can then open an SSH session with your container running in App Service from the client of your choice.
5159

52-
To get started, you need to install [Azure CLI](/cli/azure/install-azure-cli). To see how it works without installing Azure CLI, open [Azure Cloud Shell](../cloud-shell/overview.md).
60+
To get started, you need to install the [Azure CLI](/cli/azure/install-azure-cli). To see how it works without installing the Azure CLI, open [Azure Cloud Shell](../cloud-shell/overview.md).
5361

54-
Open a remote connection to your app using the [az webapp create-remote-connection](/cli/azure/webapp#az-webapp-create-remote-connection) command. Specify _\<subscription-id>_, _\<group-name>_ and _\<app-name>_ for your app.
62+
Open a remote connection to your app by using the [az webapp create-remote-connection](/cli/azure/webapp#az-webapp-create-remote-connection) command. Specify _\<subscription-id>_, _\<resource-group-name>_, and _\<app-name>_ for your app.
5563

5664
```azurecli-interactive
5765
az webapp create-remote-connection --subscription <subscription-id> --resource-group <resource-group-name> -n <app-name> &
5866
```
5967

6068
> [!TIP]
61-
> `&` at the end of the command is just for convenience if you are using Cloud Shell. It runs the process in the background so that you can run the next command in the same shell.
69+
> `&` at the end of the command is just for convenience if you're using Cloud Shell. It runs the process in the background so that you can run the next command in the same shell.
6270
6371
> [!NOTE]
64-
> If this command fails, make sure [remote debugging](https://medium.com/@auchenberg/introducing-remote-debugging-of-node-js-apps-on-azure-app-service-from-vs-code-in-public-preview-9b8d83a6e1f0) is *disabled* with the following command:
72+
> If this command fails, make sure [remote debugging](https://medium.com/@auchenberg/introducing-remote-debugging-of-node-js-apps-on-azure-app-service-from-vs-code-in-public-preview-9b8d83a6e1f0) is *disabled* by using the following command:
6573
>
6674
> ```azurecli-interactive
6775
> az webapp config set --resource-group <resource-group-name> -n <app-name> --remote-debugging-enabled=false
@@ -78,26 +86,26 @@ SSH is available { username: root, password: Docker! }
7886
Ctrl + C to close
7987
```
8088
81-
Open an SSH session with your container with the client of your choice, using the local port provided in the output (`<port-output>`). For example, with the linux [ssh](https://ss64.com/bash/ssh.html) command, you can run a single command like `java -version`:
89+
Open an SSH session with your container using the client of your choice, through the local port provided in the output (`<port-output>`). For example, with the Linux [ssh](https://ss64.com/bash/ssh.html) command, you can run a single command like `java -version`:
8290

8391
```bash
8492
ssh [email protected] -m hmac-sha1 -p <port-output> java -version
8593
```
8694
87-
Or, to enter a full SSH session, just run:
95+
Or, to enter a full SSH session, run:
8896

8997
```bash
9098
ssh [email protected] -m hmac-sha1 -p <port-output>
9199
```
92100

93-
When being prompted, type `yes` to continue connecting. You are then prompted for the password. Use `Docker!`, which was shown to you earlier.
101+
When prompted, type `yes` to continue connecting. You're then prompted for the password. Use `Docker!`, which was shown to you earlier.
94102

95103
<pre>
96104
Warning: Permanently added '[127.0.0.1]:21382' (ECDSA) to the list of known hosts.
97105
[email protected]'s password:
98106
</pre>
99107

100-
Once you're authenticated, you should see the session welcome screen.
108+
After you're authenticated, you should see the session welcome screen.
101109

102110
<pre>
103111
_____
@@ -111,9 +119,9 @@ A P P S E R V I C E O N L I N U X
111119
0e690efa93e2:~#
112120
</pre>
113121

114-
You are now connected to your connector.
122+
You're now connected to your connector.
115123

116-
Try running the [top](https://ss64.com/bash/top.html) command. You should be able to see your app's process in the process list. In the example output below, it's the one with `PID 263`.
124+
Try running the [top](https://ss64.com/bash/top.html) command. You should be able to see your app's process in the process list. In the example output, it's the one with `PID 263`.
117125

118126
<pre>
119127
Mem: 1578756K used, 127032K free, 8744K shrd, 201592K buff, 341348K cached
@@ -143,8 +151,8 @@ Load average: 0.07 0.04 0.08 4/765 45738
143151

144152
You can post questions and concerns on the [Azure forum](/answers/tags/436/azure-app-service).
145153

146-
For more information on Web App for Containers, see:
154+
To learn more about App Service for containers, see:
147155

148156
* [Introducing remote debugging of Node.js apps on Azure App Service from VS Code](https://medium.com/@auchenberg/introducing-remote-debugging-of-node-js-apps-on-azure-app-service-from-vs-code-in-public-preview-9b8d83a6e1f0)
149157
* [Quickstart: Run a custom container on App Service](quickstart-custom-container.md?pivots=container-linux)
150-
* [Azure App Service Web App for Containers FAQ](faq-app-service-linux.yml)
158+
* [Azure App Service on Linux FAQ](faq-app-service-linux.yml)
35.3 KB
Loading

0 commit comments

Comments
 (0)