using private key?

This commit is contained in:
Kim 2023-10-30 15:44:46 +01:00
parent 33412a916d
commit 41f93ebde8
1 changed files with 3 additions and 3 deletions

View File

@ -25,13 +25,13 @@ jobs:
run: |
mkdir -p /root/.ssh/
touch /root/.ssh/config
echo $SSH_KEY > /root/.ssh/id_stage.pub
chmod 600 /root/.ssh/id_stage.pub
echo $SSH_KEY > /root/.ssh/id_stage
chmod 600 /root/.ssh/id_stage
cat >> /root/.ssh/config <<END
Host staging
HostName $SSH_HOST
User $SSH_USER
IdentityFile /root/.ssh/id_stage.pub
IdentityFile /root/.ssh/id_stage
StrictHostKeyChecking no
END
env: