Skip to content

Commit ebebc1a

Browse files
authored
Update aws.md
1 parent 9826679 commit ebebc1a

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

ai/aws.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,24 @@ authenticating in to the VS Code Server instance: Prompted when navigating to
6060
`http://ec2-ip-address:8080`.
6161

6262

63+
Here is a variant of the above that auto-generates a 20-character password.
64+
65+
66+
```
67+
# Generate a random password
68+
PASSWORD=$(openssl rand -base64 20)
69+
echo "Your VS Code Server password: $PASSWORD"
70+
71+
# Use it in config
72+
cat > ~/.config/code-server/config.yaml << EOF
73+
bind-addr: 0.0.0.0:8080
74+
auth: password
75+
password: $PASSWORD
76+
cert: false
77+
EOF
78+
```
79+
80+
6381
- Install Python3
6482

6583

0 commit comments

Comments
 (0)