2024-04-07 00:56:50 +00:00
|
|
|
#!/bin/bash
|
2024-04-07 01:00:11 +00:00
|
|
|
# Assuming that this is a Debian container.
|
2024-04-07 01:02:31 +00:00
|
|
|
# apt-get update && \
|
|
|
|
# apt-get upgrade -y && \
|
|
|
|
# Apparently ssh is installed, lol
|
|
|
|
# apt install -y openssh-client && \
|
2024-04-07 01:21:47 +00:00
|
|
|
mkdir ~/.ssh && \
|
|
|
|
echo $DEPLOY_SSH_KEY > ~/.ssh/id_ed25519 && \
|
|
|
|
cat nest-known-hosts-cache.txt > ~/.ssh/known_hosts && \
|
|
|
|
chmod -R go-rwx ~/.ssh && \
|
2024-04-07 01:22:30 +00:00
|
|
|
ssh -T -o UserKnownHostsFile=nest-known-hosts-cache.txt h@hackclub.app
|