Skip to content

Commit 3aed26c

Browse files
committed
vscode_ssh_connection: compressed windows cmd commands to single
1 parent fb373e4 commit 3aed26c

File tree

1 file changed

+7
-13
lines changed

1 file changed

+7
-13
lines changed

_partials/vscode_ssh_connection.md

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -25,27 +25,21 @@ $WINDOWS_START
2525

2626
Windows has strict permissions for SSH files by default, we need to alter some permissions on the SSH configuration that was created by `gcloud` so VS Code can read the files and manage the SSH connection.
2727

28-
In **Command Prompt** run:
28+
In **Command Prompt**, copy and execute the entire block of commands:
2929

3030
```cmd
31-
icacls %USERPROFILE%\.ssh\config /inheritance:r
32-
33-
icacls %USERPROFILE%\.ssh\config /grant:r %USERNAME%:(R)
34-
35-
icacls %USERPROFILE%\.ssh\config /grant:r SYSTEM:(R)
36-
31+
icacls %USERPROFILE%\.ssh\config /inheritance:r && ^
32+
icacls %USERPROFILE%\.ssh\config /grant:r %USERNAME%:(R) && ^
33+
icacls %USERPROFILE%\.ssh\config /grant:r SYSTEM:(R) && ^
3734
icacls %USERPROFILE%\.ssh\config
3835
```
3936

4037
And:
4138

4239
```cmd
43-
icacls %USERPROFILE%\.ssh\google_compute_engine /inheritance:r
44-
45-
icacls %USERPROFILE%\.ssh\google_compute_engine /grant:r %USERNAME%:(R)
46-
47-
icacls %USERPROFILE%\.ssh\google_compute_engine /grant:r SYSTEM:(R)
48-
40+
icacls %USERPROFILE%\.ssh\google_compute_engine /inheritance:r && ^
41+
icacls %USERPROFILE%\.ssh\google_compute_engine /grant:r %USERNAME%:(R) && ^
42+
icacls %USERPROFILE%\.ssh\google_compute_engine /grant:r SYSTEM:(R) && ^
4943
icacls %USERPROFILE%\.ssh\google_compute_engine
5044
```
5145
$WINDOWS_END

0 commit comments

Comments
 (0)