add windows info

This commit is contained in:
2024-12-23 11:16:59 +01:00
parent 81e218ddb6
commit 17bba8ef76
+39 -1
View File
@@ -41,4 +41,42 @@ Alternatively you can search for "Gateway" in the search field.
Afterwards specify the user and the Gateway you request access for:
![](_static/ssh_gateways_03.png)
Once the request is submitted the responsible person for the Gateway Access List will be informed and requested for approval. Once the Approval is given the user will be automatically added to the necessary AD group.
Once the request is submitted the responsible person for the Gateway Access List will be informed and requested for approval. Once the Approval is given the user will be automatically added to the necessary AD group.
## Using SSH Gateways with Windows
1. Open Command Prompt
Run CMD: Press Windows Key + R, type cmd, and press Enter.
Alternatively, search for "Command Prompt" (“Eingabeaufforderung” in German) in the search bar and select it.
2. Connecting to a Gateway
```powershell
ssh <username>@<gateway-name>-gw
```
3. Establish an SSH connection through the gateway to a machine inside the protected network
```powershell
ssh -J <username>@<gateway-name>-gw <username>@<name-of-the-machine-you-want-to-connect>
```
### Optional: Save the Connection in a Batch File
Saving the Connection in a Batch Script lets you re-use the command. This way you wont have to retype it every time you use the same connection again.
Open Notepad:
- Press Windows Key + R, type `notepad`, and press `Enter`.
- Type the SSH command, for example:
```
ssh -J <username>@<gateway-name>-gw <username>@<name-of-the-machine-you-want-to-connect>
```
- Save the File as a Batch File: Click on File > Save As.
- Set the file name, e.g., connect-to-gateway.bat.
- Choose "Save as type": Select All Files.
- Ensure the file extension is .bat (e.g., connect-to-gateway.bat).
- Save the file in a convenient location, such as your Desktop.
Run the Batch File:
- Double-click the .bat file to execute the SSH command.