Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error while ssh into ipv6 server. #146

Closed
jainamoswal opened this issue Jan 9, 2022 · 13 comments · Fixed by #303
Closed

error while ssh into ipv6 server. #146

jainamoswal opened this issue Jan 9, 2022 · 13 comments · Fixed by #303
Assignees
Labels
enhancement New feature or request

Comments

@jainamoswal
Copy link

My server only connects over ipv6, and while using this action gives me error »

2022/01/09 14:49:09 dial tcp: address tcp/4f8: unknown port

Request you to add support for ipv6 servers also. 👀

(This is duplicate issue of #97, I don't know why the author closed it. 🤷‍♂️)

@themustafaomar
Copy link

++++1

@SuntuapDigital
Copy link

same

@dglalperen
Copy link

same here

@appleboy
Copy link
Owner

I will take it.

@appleboy appleboy added the enhancement New feature or request label Jan 20, 2024
@appleboy appleboy self-assigned this Jan 20, 2024
@cyril23
Copy link

cyril23 commented Jan 21, 2024

I will take it.

thanks a lot. I will test it once completed. Your Github action seems to be the only one supporting multiple commands, multiple servers etc., which makes usage very convenient.

I've tried a few other Github actions like https://github.com/marketplace/actions/remote-ssh-commands and its origin https://github.com/marketplace/actions/run-ssh-command but they didn't work either on IPv6. Maybe https://github.com/marketplace/actions/ssh-deploy works (according to easingthemes/ssh-deploy#125)

but for now I just need to rent another IPv4...

edit: of course you can just connect to IPv6 via SSH directly without plugins like

 - name: Deploy to server
        run: |
          # 4d50:0d56:f70a:ed69:9cb0:e66f:ad75:0cd2 is the target ipv6 address (here just a dummy)
          sshpass -p ${{ secrets.REMOTE_PASSWORD }} ssh ${{ secrets.REMOTE_USER }}@4d50:0d56:f70a:ed69:9cb0:e66f:ad75:0cd2 "hostname; cd /xx && git fetch"
# "hostname; cd /xx && git fetch" are just dummy commands
# instead of passing a cleartext password via sshpass of course you should do public key authentication instead

@nicolaeser
Copy link

I will take it.

Any news here? :(

@nicolaeser
Copy link

@appleboy Please add it, your tool is the best one imo

@mushroom1324
Copy link

Waiting for it since public IPv4 on AWS now charges over $40 every year..

@timreibe
Copy link

bump, we need this too!

@appleboy
Copy link
Owner

reference the issue on GitHub Action Runner: actions/runner-images#668

@appleboy
Copy link
Owner

Hi All,

Please help to try the following instructions:

  testing06:
    name: testing ipv6
    runs-on: ubuntu-latest
    steps:
      - name: checkout
        uses: actions/checkout@v1

      - name: Set up WARP
        uses: fscarmen/warp-on-actions@v1.1
        with:
          stack: dual

      - name: testing ipv6 for command
        run: |
          curl -m 9 --ipv6 --verbose https://google.com

      - name: testing ipv6
        uses: appleboy/ssh-action@master
        with:
          host: 2402:1f00:8000:800::2628
          username: ubuntu
          password: ${{ secrets.OVH_PASSWORD }}
          protocol: tcp6
          port: 22
          command_timeout: 30s
          script: |
            whoami

Please make sure you add the new attribute protocol: tcp6.

@JamesChenX
Copy link

Hi All,

Please help to try the following instructions:

  testing06:
    name: testing ipv6
    runs-on: ubuntu-latest
    steps:
      - name: checkout
        uses: actions/checkout@v1

      - name: Set up WARP
        uses: fscarmen/warp-on-actions@v1.1
        with:
          stack: dual

      - name: testing ipv6 for command
        run: |
          curl -m 9 --ipv6 --verbose https://google.com

      - name: testing ipv6
        uses: appleboy/ssh-action@master
        with:
          host: 2402:1f00:8000:800::2628
          username: ubuntu
          password: ${{ secrets.OVH_PASSWORD }}
          protocol: tcp6
          port: 22
          command_timeout: 30s
          script: |
            whoami

Please make sure you add the new attribute protocol: tcp6.

I have tried it, and it works perfectly for IPv6 servers. Thanks!

@philipbelcher
Copy link

Hi All,

Please help to try the following instructions:

  testing06:
    name: testing ipv6
    runs-on: ubuntu-latest
    steps:
      - name: checkout
        uses: actions/checkout@v1

      - name: Set up WARP
        uses: fscarmen/warp-on-actions@v1.1
        with:
          stack: dual

      - name: testing ipv6 for command
        run: |
          curl -m 9 --ipv6 --verbose https://google.com

      - name: testing ipv6
        uses: appleboy/ssh-action@master
        with:
          host: 2402:1f00:8000:800::2628
          username: ubuntu
          password: ${{ secrets.OVH_PASSWORD }}
          protocol: tcp6
          port: 22
          command_timeout: 30s
          script: |
            whoami

Please make sure you add the new attribute protocol: tcp6.

Can also confirm this works great - thanks so much!

Is there any chance of getting this same IPv6 support in your other package scp-action ?

Currently I receive an error:
drone-scp error: error copy file to dest: 2a05, error message: dial tcp: address tcp/d018: unknown port
and presume it's also due to lack of IPv6 support. Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.