Skip to content

Commit

Permalink
connecting ssh using appleboy actions
Browse files Browse the repository at this point in the history
  • Loading branch information
kneerunjun committed Jun 22, 2024
1 parent f858cf2 commit 3fbd333
Showing 1 changed file with 14 additions and 7 deletions.
21 changes: 14 additions & 7 deletions .github/workflows/wkflw.dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,20 @@ jobs:
uses: actions/checkout@v2

- name: Set up SSH on actions container
run: |
mkdir -p ~/.ssh
echo $SSH_PRIVATE_KEY > ~/.ssh/id_rsa
cat ~/.ssh/id_rsa
chmod 600 ~/.ssh/id_rsa
ssh-keyscan -H $RASPBERRY_PI_IP >> ~/.ssh/known_hosts
# ssh-keyscan -H ${RASPBERRY_PI_IP}
uses: appleboy/ssh-action@v1.0.3
with:
host: ${{ secrets.RPI_IP_DEV }}
username: ${{ secrets.RASPBERRY_PI_UNAME }}
password: "10645641993"
port: 22
script: whoami
# run: |
# mkdir -p ~/.ssh
# echo $SSH_PRIVATE_KEY > ~/.ssh/id_rsa
# cat ~/.ssh/id_rsa
# chmod 600 ~/.ssh/id_rsa
# ssh-keyscan -H $RASPBERRY_PI_IP >> ~/.ssh/known_hosts
# # ssh-keyscan -H ${RASPBERRY_PI_IP}
# uses: webfactory/ssh-agent@v0.9.0
# with:
# ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
Expand Down

0 comments on commit 3fbd333

Please sign in to comment.