Update main.yml

adjust permissions of created known_hosts file
This commit is contained in:
Peter Bieringer 2022-10-19 21:59:40 +02:00 committed by GitHub
parent e66597613c
commit dc83863bc5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -52,6 +52,7 @@ jobs:
echo "$SSH_KEY" > /home/runner/.ssh/ldpkey
chmod 400 /home/runner/.ssh/ldpkey
ssh-keyscan -p $LDPPORT -H $LDPHOST1 >> /home/runner/.ssh/known_hosts
chmod 400 /home/runner/.ssh/known_hosts
#ssh-keyscan -p $LDPPORT -H $LDPHOST2 >> /home/runner/.ssh/known_hosts
ssh -vv -p $LDPPORT -i /home/runner/.ssh/ldpkey $LDPUSER@$LDPHOST1 ls
#ssh -vv -p $LDPPORT -i /home/runner/.ssh/ldpkey $LDPUSER@$LDPHOST2 ls