1
0
Fork 0
mirror of https://github.com/shimataro/ssh-key-action.git synced 2025-06-19 22:52:10 +10:00

update README

This commit is contained in:
shimataro 2021-03-07 21:09:28 +09:00
parent 72ff844f6e
commit 7b6183d699
No known key found for this signature in database
GPG key ID: BE92C05736911A9D

View file

@ -36,6 +36,7 @@ steps:
name: id_rsa # optional
known_hosts: ${{ secrets.KNOWN_HOSTS }}
config: ${{ secrets.CONFIG }} # ssh_config; optional
if_key_exists: fail # replace / ignore / fail; optional (defaults to fail)
- name: rsync over ssh
run: rsync ./foo/ user@remote:bar/
```
@ -88,6 +89,14 @@ Check below:
* `Host key verification failed.`:
* Set `known_hosts` parameter correctly (use `ssh-keyscan` command).
### I want to replace/ignore if key exists.
Use `if_key_exists` parameter.
* `replace`: replaces key
* `ignore`: do nothing
* `fail`: fails (default)
### How do I use encrypted SSH key?
This action doesn't support encrypted key directly.