You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -34,6 +34,43 @@ To show all supported Java versions, run the following command in the [Cloud She
34
34
az webapp list-runtimes --os linux | grep "JAVA\|TOMCAT\|JBOSSEAP"
35
35
```
36
36
37
+
For more detailed version information in your Linux container, [open an SSH session with the container](configure-linux-open-ssh-session.md?pivots=container-linux). Here are a few examples of what you can run.
38
+
39
+
::: zone pivot="java-javase,java-tomcat,java-jboss"
40
+
41
+
To view the Java version:
42
+
43
+
```bash
44
+
java -version
45
+
```
46
+
47
+
::: zone-end
48
+
49
+
::: zone pivot="java-tomcat"
50
+
51
+
To view the Tomcat server version:
52
+
53
+
```bash
54
+
sh /usr/local/tomcat/version.sh
55
+
```
56
+
57
+
Or, if your Tomcat server is in a custom location, find `version.sh` with:
# Open an SSH session to a container in Azure App Service
15
15
16
-
[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 direct into an app hosted in a Container.
16
+
[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 container (built-in or custom).
17
17
18
-
::: zone pivot="container-windows"
18
+
- The built-in, stack-specific Linux containers already have the necessary configuration to enable SSH sessions.
19
+
- Windows custom containers don't require any special settings for the [browser SSH session](#open-ssh-session-in-browser) to work. It doesn't support SSH sessions through Azure CLI.
20
+
- Linux custom containers require additional configurations to enable SSH sessions. See [Enable SSH](configure-custom-container.md&pivots=container-linux#enable-ssh).
19
21
20
-
## Open SSH session in browser
21
-
22
-
[!INCLUDE [Open SSH session in browser](../../includes/app-service-web-ssh-connect-no-h.md)]
23
-
24
-
::: zone-end
22
+

25
23
26
24
::: zone pivot="container-linux"
27
25
28
-

29
-
30
26
You can also connect to the container directly from your local development machine using SSH and SFTP.
31
27
28
+
::: zone-end
29
+
32
30
## Open SSH session in browser
33
31
34
32
[!INCLUDE [Open SSH session in browser](../../includes/app-service-web-ssh-connect-no-h.md)]
35
33
36
-
## Use SSH support with custom Docker images
37
-
38
-
See [Configure SSH in a custom container](configure-custom-container.md#enable-ssh).
34
+
::: zone pivot="container-linux"
39
35
40
-
## Open SSH session from remote shell
36
+
## Open SSH session with Azure CLI
41
37
42
-
> [!NOTE]
43
-
> This feature is currently in Preview.
44
-
>
38
+
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.
45
39
46
-
Using TCP tunneling you can create a network connection between your development machine and Web App for 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.
47
-
48
-
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).
40
+
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).
49
41
50
42
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.
51
43
@@ -66,15 +58,24 @@ az webapp create-remote-connection --subscription <subscription-id> --resource-g
66
58
The command output gives you the information you need to open an SSH session.
67
59
68
60
```output
69
-
Port 21382 is open
61
+
Verifying if app is running....
62
+
App is running. Trying to establish tunnel connection...
63
+
Opening tunnel on addr: 127.0.0.1
64
+
Opening tunnel on port: <port-output>
70
65
SSH is available { username: root, password: Docker! }
71
-
Start your favorite client and connect to port 21382
66
+
Ctrl + C to close
72
67
```
73
68
74
-
Open an SSH session with your container with the client of your choice, using the local port. The following example uses the default [ssh](https://ss64.com/bash/ssh.html) command:
69
+
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`:
0 commit comments