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,45 @@ 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
+
### Get Java version in Linux container
38
+
39
+
For more detailed version information in the 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.
40
+
41
+
::: zone pivot="java-javase,java-tomcat,java-jboss"
42
+
43
+
To view the Java version in the SSH session:
44
+
45
+
```bash
46
+
java -version
47
+
```
48
+
49
+
::: zone-end
50
+
51
+
::: zone pivot="java-tomcat"
52
+
53
+
To view the Tomcat server version in the SSH session:
54
+
55
+
```bash
56
+
sh /usr/local/tomcat/version.sh
57
+
```
58
+
59
+
Or, if your Tomcat server is in a custom location, find `version.sh` with:
60
+
61
+
```bash
62
+
find / -name "version.sh"
63
+
```
64
+
65
+
::: zone-end
66
+
67
+
::: zone pivot="java-jboss"
68
+
69
+
To view the JBoss server version in the SSH session:
# 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.
17
-
18
16
::: zone pivot="container-windows"
19
17
20
-
## Open SSH session in browser
18
+
[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.
21
19
22
-
[!INCLUDE [Open SSH session in browser](../../includes/app-service-web-ssh-connect-no-h.md)]
20
+
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.
21
+
22
+

23
23
24
24
::: zone-end
25
25
26
26
::: zone pivot="container-linux"
27
27
28
+
[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).
29
+
30
+
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).
31
+
28
32

29
33
30
34
You can also connect to the container directly from your local development machine using SSH and SFTP.
31
35
36
+
::: zone-end
37
+
32
38
## Open SSH session in browser
33
39
34
40
[!INCLUDE [Open SSH session in browser](../../includes/app-service-web-ssh-connect-no-h.md)]
35
41
36
-
## Use SSH support with custom Docker images
37
-
38
-
See [Configure SSH in a custom container](configure-custom-container.md#enable-ssh).
39
-
40
-
## Open SSH session from remote shell
42
+
::: zone pivot="container-linux"
41
43
42
-
> [!NOTE]
43
-
> This feature is currently in Preview.
44
-
>
44
+
## Open SSH session with Azure CLI
45
45
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.
46
+
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.
47
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).
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).
49
49
50
50
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
51
@@ -66,15 +66,24 @@ az webapp create-remote-connection --subscription <subscription-id> --resource-g
66
66
The command output gives you the information you need to open an SSH session.
67
67
68
68
```output
69
-
Port 21382 is open
69
+
Verifying if app is running....
70
+
App is running. Trying to establish tunnel connection...
71
+
Opening tunnel on addr: 127.0.0.1
72
+
Opening tunnel on port: <port-output>
70
73
SSH is available { username: root, password: Docker! }
71
-
Start your favorite client and connect to port 21382
74
+
Ctrl + C to close
72
75
```
73
76
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:
77
+
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`:
Copy file name to clipboardExpand all lines: includes/app-service-web-ssh-connect-builtin-no-h.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,4 +16,4 @@ ms.custom: "include file"
16
16
> Any changes you make outside the */home* directory are stored in the container itself and don't persist beyond an app restart.
17
17
>
18
18
19
-
To open a remote SSH session from your local machine, see [Open SSH session from remote shell](../articles/app-service/configure-linux-open-ssh-session.md#open-ssh-session-from-remote-shell).
19
+
To open a remote SSH session from your local machine, see [Open SSH session from remote shell](../articles/app-service/configure-linux-open-ssh-session.md#open-ssh-session-with-azure-cli).
0 commit comments