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

Error in preparation before connecting to ssh

Open khamdullaevuz opened this issue 11 months ago • 10 comments

image

How can i fix?

khamdullaevuz avatar Mar 19 '24 07:03 khamdullaevuz

I will take it.

appleboy avatar Mar 19 '24 09:03 appleboy

Same with https://github.com/appleboy/ssh-action/pull/303 comments.

cc @muckelba

appleboy avatar Mar 19 '24 09:03 appleboy

thank you

khamdullaevuz avatar Mar 19 '24 09:03 khamdullaevuz

Hi @khamdullaevuz

I reopened the issue since the #303 issue you reported is the same as what you reported, let's discuss it here together.

appleboy avatar Mar 19 '24 12:03 appleboy

Hello @appleboy Yes, I thought the bug was fixed and closed this. But the error is observed again.

khamdullaevuz avatar Mar 19 '24 12:03 khamdullaevuz

The following is my config

name: testing master
on: [push]

jobs:
  testing01:
    name: testing new bash flow
    runs-on: ubuntu-latest
    steps:
      - name: checkout
        uses: actions/checkout@v1

      - name: try bash script
        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

output:

image

https://github.com/appleboy/ssh-action/actions/runs/8343438946/job/22833645938

You can't see the download progress?

appleboy avatar Mar 19 '24 13:03 appleboy

@appleboy Facing same issue

image

aleem-333 avatar Mar 20 '24 17:03 aleem-333

Hi team, can I check how long will the fix be released? Or is there any workaround first? I'm using this for deploying codes for all my projects. image

Here is my workflow file: ` deploy: runs-on: ubuntu-latest needs: build steps: - name: Checkout Code uses: actions/checkout@v2

        - name: SSH To Server and Deploy the Code
          uses: appleboy/ssh-action@master
          with:
            host: ${{ secrets.HOST }}
            username: ${{ secrets.USERNAME }}
            port: ${{ secrets.PORT }}
            password: ${{ secrets.PASSWORD }}
            script: |
                echo "Deploying the service to staging server..."`

siegewallace06 avatar Mar 22 '24 02:03 siegewallace06

@siegewallace06 Please use the stable version appleboy/[email protected] first.

appleboy avatar Mar 22 '24 05:03 appleboy

@siegewallace06 Please use the stable version appleboy/[email protected] first.

Thanks, it works

siegewallace06 avatar Mar 25 '24 02:03 siegewallace06

I also encountered error during preparation before connecting, albeit with a different error message.

image

The step looks like

      - name: Connect and pull
        uses: appleboy/ssh-action@master
        with:
          username: ${{ secrets.SSH_USER }}
          host: ${{ secrets.SSH_HOST }}
          key: ${{ secrets.SSH_KEY }}
          script: ~/update.sh

minhnhatnoe avatar May 21 '24 16:05 minhnhatnoe