mirror of
https://github.com/shimataro/ssh-key-action.git
synced 2025-06-19 22:52:10 +10:00
Co-authored-by: shimataro <shimataro@zelkova.cc>
This commit is contained in:
parent
f1a1580bbd
commit
c2dde220fb
6 changed files with 28 additions and 8 deletions
6
.github/workflows/build.yml
vendored
6
.github/workflows/build.yml
vendored
|
@ -1,7 +1,11 @@
|
|||
# https://help.github.com/en/articles/workflow-syntax-for-github-actions
|
||||
|
||||
on: push
|
||||
name: Build
|
||||
|
||||
on:
|
||||
- push
|
||||
- pull_request
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: Build on ${{ matrix.os }} / Node.js v${{ matrix.nodejs }}
|
||||
|
|
6
.github/workflows/verify-on-macos.yml
vendored
6
.github/workflows/verify-on-macos.yml
vendored
|
@ -1,7 +1,11 @@
|
|||
# https://help.github.com/en/articles/workflow-syntax-for-github-actions
|
||||
|
||||
on: push
|
||||
name: macOS
|
||||
|
||||
on:
|
||||
- push
|
||||
- pull_request
|
||||
|
||||
jobs:
|
||||
ssh:
|
||||
name: Connect to github.com
|
||||
|
|
6
.github/workflows/verify-on-ubuntu.yml
vendored
6
.github/workflows/verify-on-ubuntu.yml
vendored
|
@ -1,7 +1,11 @@
|
|||
# https://help.github.com/en/articles/workflow-syntax-for-github-actions
|
||||
|
||||
on: push
|
||||
name: Ubuntu
|
||||
|
||||
on:
|
||||
- push
|
||||
- pull_request
|
||||
|
||||
jobs:
|
||||
ssh:
|
||||
name: Connect to github.com
|
||||
|
|
6
.github/workflows/verify-on-ubuntu1604.yml
vendored
6
.github/workflows/verify-on-ubuntu1604.yml
vendored
|
@ -1,7 +1,11 @@
|
|||
# https://help.github.com/en/articles/workflow-syntax-for-github-actions
|
||||
|
||||
on: push
|
||||
name: Ubuntu 16.04
|
||||
|
||||
on:
|
||||
- push
|
||||
- pull_request
|
||||
|
||||
jobs:
|
||||
ssh:
|
||||
name: Connect to github.com
|
||||
|
|
6
.github/workflows/verify-on-windows.yml
vendored
6
.github/workflows/verify-on-windows.yml
vendored
|
@ -1,7 +1,11 @@
|
|||
# https://help.github.com/en/articles/workflow-syntax-for-github-actions
|
||||
|
||||
on: push
|
||||
name: Windows
|
||||
|
||||
on:
|
||||
- push
|
||||
- pull_request
|
||||
|
||||
jobs:
|
||||
ssh:
|
||||
name: Connect to github.com
|
||||
|
|
|
@ -19,7 +19,7 @@ Useful for SCP, SFTP, and `rsync` over SSH in deployment script.
|
|||
|
||||
Add your SSH key to your product secrets by clicking `Settings` - `Secrets` - `Add a new secret` beforehand.
|
||||
|
||||
**NOTE:** OPENSSH format (key begins with `-----BEGIN OPENSSH PRIVATE KEY-----`) may not work due to OpenSSH version on VM. Please use PEM format (begins with `-----BEGIN RSA PRIVATE KEY-----`) instead.
|
||||
**NOTE:** OPENSSH format (key begins with `-----BEGIN OPENSSH PRIVATE KEY-----`) may not work due to OpenSSH version on VM. Please use PEM format (begins with `-----BEGIN RSA PRIVATE KEY-----`) instead. In order to convert your key inline to PEM format simply use `ssh-keygen -p -m PEM -f ~/.ssh/id_rsa`.
|
||||
|
||||
```yaml
|
||||
runs-on: ubuntu-latest
|
||||
|
@ -78,11 +78,11 @@ steps:
|
|||
|
||||
### SSH failed even though key has been installed.
|
||||
|
||||
Check belows:
|
||||
Check below:
|
||||
|
||||
* `Load key "/HOME/.ssh/id_rsa": invalid format`:
|
||||
* OPENSSH format (key begins with `-----BEGIN OPENSSH PRIVATE KEY-----`) may not work.
|
||||
* Use PEM format (begins with `-----BEGIN RSA PRIVATE KEY-----`).
|
||||
* Use PEM format (begins with `-----BEGIN RSA PRIVATE KEY-----`). Convert it from OPENSSH format using `ssh-keygen -p -m PEM -f ~/.ssh/id_rsa`
|
||||
* `Host key verification failed.`:
|
||||
* Set `known_hosts` option correctly (use `ssh-keyscan` command).
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue