Skip to content

Commit

Permalink
chekcing runner for ipv6 connectivity
Browse files Browse the repository at this point in the history
  • Loading branch information
kneerunjun committed Jun 26, 2024
1 parent 8917f5f commit 2b36451
Showing 1 changed file with 16 additions and 10 deletions.
26 changes: 16 additions & 10 deletions .github/workflows/wkflw.dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,22 @@ jobs:
- name: Checkout code
uses: actions/checkout@v2

- name: Check SSH port with IPv6
run: nc -6 -zv ${{ secrets.RPI_IP_DEV }} 22
- name: Test IPv6 connectivity
run: ping6 -c 4 google.com

- name: Test IPv6 connectivity
run: ping6 -c 6 google.com

# - name: Check SSH port with IPv6
# run: nc -6 -zv ${{ secrets.RPI_IP_DEV }} 22

- name: Setup SSH
run: |
mkdir -p ~/.ssh
echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_rsa
chmod 600 ~/.ssh/id_rsa
ssh-keyscan -6 -H ${{ secrets.RPI_IP_DEV }} >> ~/.ssh/known_hosts
# - name: Setup SSH
# run: |
# mkdir -p ~/.ssh
# echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_rsa
# chmod 600 ~/.ssh/id_rsa
# ssh-keyscan -6 -H ${{ secrets.RPI_IP_DEV }} >> ~/.ssh/known_hosts


- name: Test SSH connection using IPv6
run: ssh -6 -v ${{ secrets.RASPBERRY_PI_UNAME }}@${{ secrets.RPI_IP_DEV }} exit
# - name: Test SSH connection using IPv6
# run: ssh -6 -v ${{ secrets.RASPBERRY_PI_UNAME }}@${{ secrets.RPI_IP_DEV }} exit

0 comments on commit 2b36451

Please sign in to comment.