renaming key

This commit is contained in:
Kim 2023-11-06 10:02:42 +01:00
parent a2155ee086
commit 1e974681f8
1 changed files with 4 additions and 3 deletions

View File

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