Skip to content

Commit

Permalink
Use ssh key instead
Browse files Browse the repository at this point in the history
  • Loading branch information
GordiNoki authored Aug 2, 2024
1 parent 1caed1a commit 167af18
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions preload.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
sudo apt update
sudo apt install jq screen curl openssh-server -y
sudo apt install jq coreutils screen curl openssh-server -y
cd ~
wget https://bin.equinox.io/c/bNyj1mQVY4c/ngrok-v3-stable-linux-amd64.tgz -q -O ngrok.tgz
tar -xf ngrok.tgz
Expand All @@ -12,8 +12,10 @@ screen -dm ./ngrok tcp 22
sudo ufw disable

sudo useradd -m -s /bin/bash bidgido
echo -e "passasas\npassasas\n" | sudo passwd bidgido
sudo usermod -aG sudo bidgido
sudo mkdir -p /home/bidgido/.ssh/
echo $RSA_PUBLIC_KEY | sudo tee /home/bidgido/.ssh/authorized_keys
sudo chown -R bidgido:bidgido /home/bidgido/

echo IP: $(curl -s localhost:4040/api/tunnels | jq -r .tunnels[0].public_url)
echo User: bidgido
Expand Down

0 comments on commit 167af18

Please sign in to comment.