ssh-action icon indicating copy to clipboard operation
ssh-action copied to clipboard

error while ssh into ipv6 server.

Open jainamoswal opened this issue 4 years ago • 7 comments

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. 🤷‍♂️)

jainamoswal avatar Jan 09 '22 15:01 jainamoswal

++++1

themustafaomar avatar Mar 22 '22 05:03 themustafaomar

same

SuntuapDigital avatar Apr 03 '22 21:04 SuntuapDigital

same here

dglalperen avatar Jan 18 '24 01:01 dglalperen

I will take it.

appleboy avatar Jan 20 '24 12:01 appleboy

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 https://github.com/easingthemes/ssh-deploy/issues/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

cyril23 avatar Jan 21 '24 16:01 cyril23

I will take it.

Any news here? :(

nicolaeser avatar Feb 08 '24 19:02 nicolaeser

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

nicolaeser avatar Feb 08 '24 19:02 nicolaeser

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

mushroom1324 avatar Feb 26 '24 06:02 mushroom1324

bump, we need this too!

timreibe avatar Feb 27 '24 15:02 timreibe

reference the issue on GitHub Action Runner: https://github.com/actions/runner-images/issues/668

appleboy avatar Mar 16 '24 03:03 appleboy

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/[email protected]
        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.

appleboy avatar Mar 16 '24 08:03 appleboy

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/[email protected]
        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!

JamesChenX avatar Mar 24 '24 04:03 JamesChenX

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/[email protected]
        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

philipbelcher avatar Apr 05 '24 16:04 philipbelcher