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

Debug is not giving debug information

Open sgurlt opened this issue 5 years ago • 2 comments

Hey,

I am actually facing the issue that my ssh connection is not going through successfully.

2020/02/27 13:04:57 ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain

In order to check what is going wrong, I've set debug to true, but sadly I am not getting any detailed information:

2020-02-27T13:04:41.8061247Z ##[section]Starting: Request a runner to run this job 2020-02-27T13:04:42.6211291Z Requesting a hosted runner in current repository's account/organization with labels: 'ubuntu-latest', require runner match: True 2020-02-27T13:04:42.7111306Z Labels matched hosted runners has been found, waiting for one of them get assigned for this job. 2020-02-27T13:04:42.7711318Z ##[section]Finishing: Request a runner to run this job 2020-02-27T13:04:50.4638701Z Current runner version: '2.165.2' 2020-02-27T13:04:50.4640809Z Prepare workflow directory 2020-02-27T13:04:50.4835105Z Prepare all required actions 2020-02-27T13:04:50.4850769Z Download action repository 'appleboy/ssh-action@master' 2020-02-27T13:04:51.7923998Z Build container for action use: '/home/runner/work/_actions/appleboy/ssh-action/master/Dockerfile'. 2020-02-27T13:04:51.7989413Z ##[command]/usr/bin/docker build -t e87b52:327d6d8367a346f88965e4af500fff29 "/home/runner/work/_actions/appleboy/ssh-action/master" 2020-02-27T13:04:52.7528007Z Sending build context to Docker daemon 290.3kB 2020-02-27T13:04:52.7528791Z 2020-02-27T13:04:52.7539746Z Step 1/4 : FROM appleboy/drone-ssh:1.5.5-linux-amd64 2020-02-27T13:04:52.7541276Z 1.5.5-linux-amd64: Pulling from appleboy/drone-ssh 2020-02-27T13:04:52.7542671Z 63bc94deeb28: Pulling fs layer 2020-02-27T13:04:52.7544297Z ac44f5a8c67b: Pulling fs layer 2020-02-27T13:04:52.7546119Z 276b00fdab51: Pulling fs layer 2020-02-27T13:04:52.7547452Z f6a39918766c: Pulling fs layer 2020-02-27T13:04:52.7553569Z f6a39918766c: Waiting 2020-02-27T13:04:52.7555018Z 276b00fdab51: Verifying Checksum 2020-02-27T13:04:52.7556364Z 276b00fdab51: Download complete 2020-02-27T13:04:52.7557708Z ac44f5a8c67b: Verifying Checksum 2020-02-27T13:04:52.7559035Z ac44f5a8c67b: Download complete 2020-02-27T13:04:52.7560648Z 63bc94deeb28: Download complete 2020-02-27T13:04:52.8562406Z 63bc94deeb28: Pull complete 2020-02-27T13:04:52.8863395Z f6a39918766c: Verifying Checksum 2020-02-27T13:04:52.8864803Z f6a39918766c: Download complete 2020-02-27T13:04:52.9475861Z ac44f5a8c67b: Pull complete 2020-02-27T13:04:52.9916911Z 276b00fdab51: Pull complete 2020-02-27T13:04:53.1027166Z f6a39918766c: Pull complete 2020-02-27T13:04:53.1061337Z Digest: sha256:e5a96d1c06e159a963574b40b3591de499cf3c03f0aa92952998eece3c33af4d 2020-02-27T13:04:53.1083633Z Status: Downloaded newer image for appleboy/drone-ssh:1.5.5-linux-amd64 2020-02-27T13:04:53.1097717Z ---> 5e8a678bcca9 2020-02-27T13:04:53.1123164Z Step 2/4 : ADD entrypoint.sh /entrypoint.sh 2020-02-27T13:04:54.8237623Z ---> c7059f35f89d 2020-02-27T13:04:54.8239286Z Step 3/4 : RUN chmod +x /entrypoint.sh 2020-02-27T13:04:54.8464403Z ---> Running in 478f464277bb 2020-02-27T13:04:56.0115281Z Removing intermediate container 478f464277bb 2020-02-27T13:04:56.0138276Z ---> 9095f2c8ac72 2020-02-27T13:04:56.0139677Z Step 4/4 : ENTRYPOINT ["/entrypoint.sh"] 2020-02-27T13:04:56.0302861Z ---> Running in d6e2ee2ac73f 2020-02-27T13:04:57.0092648Z Removing intermediate container d6e2ee2ac73f 2020-02-27T13:04:57.0093893Z ---> bb5608224b99 2020-02-27T13:04:57.0140531Z Successfully built bb5608224b99 2020-02-27T13:04:57.0259752Z Successfully tagged e87b52:327d6d8367a346f88965e4af500fff29 2020-02-27T13:04:57.0704672Z ##[group]Run appleboy/ssh-action@master 2020-02-27T13:04:57.0705693Z with: 2020-02-27T13:04:57.0707126Z host: *** 2020-02-27T13:04:57.0707858Z username: ec2-user 2020-02-27T13:04:57.0716522Z key: *** 2020-02-27T13:04:57.0717252Z script: whoami 2020-02-27T13:04:57.0718018Z debug: true 2020-02-27T13:04:57.0718752Z port: 22 2020-02-27T13:04:57.0719490Z sync: false 2020-02-27T13:04:57.0720225Z timeout: 30s 2020-02-27T13:04:57.0720955Z command_timeout: 10m 2020-02-27T13:04:57.0721683Z proxy_port: 22 2020-02-27T13:04:57.0722426Z proxy_timeout: 30s 2020-02-27T13:04:57.0723144Z script_stop: false 2020-02-27T13:04:57.0723864Z ##[endgroup] 2020-02-27T13:04:57.0786859Z ##[command]/usr/bin/docker run --name e87b52327d6d8367a346f88965e4af500fff29_8744d9 --label e87b52 --workdir /github/workspace --rm -e INPUT_HOST -e INPUT_USERNAME -e INPUT_KEY -e INPUT_SCRIPT -e INPUT_DEBUG -e INPUT_PORT -e INPUT_PASSPHRASE -e INPUT_PASSWORD -e INPUT_SYNC -e INPUT_TIMEOUT -e INPUT_COMMAND_TIMEOUT -e INPUT_KEY_PATH -e INPUT_PROXY_HOST -e INPUT_PROXY_PORT -e INPUT_PROXY_USERNAME -e INPUT_PROXY_PASSWORD -e INPUT_PROXY_PASSPHRASE -e INPUT_PROXY_TIMEOUT -e INPUT_PROXY_KEY -e INPUT_PROXY_KEY_PATH -e INPUT_SCRIPT_STOP -e INPUT_ENVS -e HOME -e GITHUB_REF -e GITHUB_SHA -e GITHUB_REPOSITORY -e GITHUB_RUN_ID -e GITHUB_RUN_NUMBER -e GITHUB_ACTOR -e GITHUB_WORKFLOW -e GITHUB_HEAD_REF -e GITHUB_BASE_REF -e GITHUB_EVENT_NAME -e GITHUB_WORKSPACE -e GITHUB_ACTION -e GITHUB_EVENT_PATH -e RUNNER_OS -e RUNNER_TOOL_CACHE -e RUNNER_TEMP -e RUNNER_WORKSPACE -e ACTIONS_RUNTIME_URL -e ACTIONS_RUNTIME_TOKEN -e GITHUB_ACTIONS=true -v "/var/run/docker.sock":"/var/run/docker.sock" -v "/home/runner/work/_temp/_github_home":"/github/home" -v "/home/runner/work/_temp/_github_workflow":"/github/workflow" -v "/home/runner/work/Content-Sync-Integration-Tests-Drupal/Content-Sync-Integration-Tests-Drupal":"/github/workspace" e87b52:327d6d8367a346f88965e4af500fff29 2020-02-27T13:04:57.3839526Z ======CMD====== 2020-02-27T13:04:57.3840675Z whoami 2020-02-27T13:04:57.3841563Z ======END====== 2020-02-27T13:04:57.3842449Z ======ENV====== 2020-02-27T13:04:57.3842962Z 2020-02-27T13:04:57.3843836Z ======END====== 2020-02-27T13:04:57.9609604Z 2020/02/27 13:04:57 ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain 2020-02-27T13:04:58.1488035Z Cleaning up orphan processes

I was hoping to get an overview of which commands have been executed in detail, like for example:

ssh ...... -v

Any chance to get that?

sgurlt avatar Feb 27 '20 13:02 sgurlt

Please post your YAML file and what is the ssh-action version?

appleboy avatar Feb 27 '20 13:02 appleboy

Here you go:

name: Upgrade-Existing-Drupal

on: push: branches: - master

jobs: build: runs-on: ubuntu-latest

steps:       
- name: ssh proxy command
  uses: appleboy/ssh-action@master
  with:
    host: ${{ secrets.aws_demo_ip }}
    username: ${{ secrets.aws_username }}
    key: ${{ secrets.aws_demo_instance_key }}
    proxy_host: ${{ secrets.aws_jumphost_ip }}
    proxy_username: ${{ secrets.aws_username }}
    proxy_key: ${{ secrets.aws_jumphost_instance_key }}
    script: whoami

sgurlt avatar Feb 27 '20 15:02 sgurlt