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

SSH to Tailscale network #344

Open
keu opened this issue Nov 1, 2024 · 2 comments
Open

SSH to Tailscale network #344

keu opened this issue Nov 1, 2024 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@keu
Copy link

keu commented Nov 1, 2024

Describe the bug

Tailscale SSH doesn't need to specify a SSH key/password. But when I leave it empty I got:

2024/11/01 21:15:49 Error: can't connect without a private SSH key or password

Yaml Config

Please post your Yaml configuration file along with the output results.

jobs:
  deploy:
    runs-on: ubuntu-latest
    environment: ec2

    steps:
    - name: Tailscale Auth
      uses: tailscale/github-action@v2
      with:
        oauth-client-id: ${{ secrets.TS_OAUTH_CLIENT_ID }}
        oauth-secret: ${{ secrets.TS_OAUTH_SECRET }}
        tags: tag:ci
        version: 1.76.1

    - name: Execute deployment script on EC2
      uses: appleboy/ssh-action@master
      with:
        host: ${{ secrets.EC_HOST }}
        username: ${{ secrets.EC_USER }}
        password: ''
        command_timeout: 10m
        script: |
          whoami
Run appleboy/ssh-action@master
Run echo "$GITHUB_ACTION_PATH" >> $GITHUB_PATH
Run entrypoint.sh
Will download drone-ssh-1.7.7-linux-amd64 from https://github.com/appleboy/drone-ssh/releases/download/v1.7.7
======= CLI Version =======
Drone SSH version 1.7.7
===========================
[20](/job/32407897636#step:3:21)24/11/01 21:15:49 Error: can't connect without a private SSH key or password
Error: Process completed with exit code 1.

Related environment

Please provide the following information:

  1. GH
  2. Tailscale 1.76.1
@keu keu added the bug Something isn't working label Nov 1, 2024
@appleboy
Copy link
Owner

appleboy commented Nov 2, 2024

I will try it.

@appleboy appleboy added enhancement New feature or request and removed bug Something isn't working labels Nov 2, 2024
@coolio85
Copy link

coolio85 commented Nov 9, 2024

Is there any workaround/way to achieve this? Also facing a similar issue

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

No branches or pull requests

3 participants