Skip to content

Instantly share code, notes, and snippets.

@jg3
jg3 / cloudshell-init.sh
Created May 9, 2024 15:46 — forked from ImIOImI/cloudshell-init.sh
AWS Cloudshell init script
#!/bin/sh
defaultUser="ImIOImI"
defaultEmail="troy.knapp@gmail.com"
rsaKeyFile=/home/cloudshell-user/.ssh/id_rsa
if [ ! -f "$rsaKeyFile" ]; then
#add rsa key
ssh-keygen -b 2048 -t rsa -f "$rsaKeyFile" -q -N ""
echo "Please copy the following into your GitHub profile here: https://github.com/settings/ssh/new
"