oxaliq.net/.woodpecker/ssh.sh

8 lines
200 B
Bash
Raw Normal View History

#!/bin/sh -e
apk add openssh-client
mkdir -p $HOME/.ssh
ssh-keyscan -t ed25519 turtle.hup.is >> $HOME/.ssh/known_hosts
echo "$DEPLOY_SSH_KEY" > $HOME/.ssh/id_ed25519
chmod 0600 $HOME/.ssh/id_ed25519