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:
parent
72ff844f6e
commit
7b6183d699
1 changed files with 9 additions and 0 deletions
|
@ -36,6 +36,7 @@ steps:
|
||||||
name: id_rsa # optional
|
name: id_rsa # optional
|
||||||
known_hosts: ${{ secrets.KNOWN_HOSTS }}
|
known_hosts: ${{ secrets.KNOWN_HOSTS }}
|
||||||
config: ${{ secrets.CONFIG }} # ssh_config; optional
|
config: ${{ secrets.CONFIG }} # ssh_config; optional
|
||||||
|
if_key_exists: fail # replace / ignore / fail; optional (defaults to fail)
|
||||||
- name: rsync over ssh
|
- name: rsync over ssh
|
||||||
run: rsync ./foo/ user@remote:bar/
|
run: rsync ./foo/ user@remote:bar/
|
||||||
```
|
```
|
||||||
|
@ -88,6 +89,14 @@ Check below:
|
||||||
* `Host key verification failed.`:
|
* `Host key verification failed.`:
|
||||||
* Set `known_hosts` parameter correctly (use `ssh-keyscan` command).
|
* 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?
|
### How do I use encrypted SSH key?
|
||||||
|
|
||||||
This action doesn't support encrypted key directly.
|
This action doesn't support encrypted key directly.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue