renaming key
This commit is contained in:
parent
a2155ee086
commit
1e974681f8
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue