mirror of
https://github.com/shimataro/ssh-key-action.git
synced 2025-06-19 22:52:10 +10:00
Feature/known_hosts (#25)
* * add "known-hosts" option * * update CHANGELOG * * update README * * update actions.yml * * update example of known-hosts * * fix message
This commit is contained in:
parent
b9c6c52737
commit
3d8365bb3a
6 changed files with 75 additions and 25 deletions
|
@ -21,10 +21,11 @@ steps:
|
|||
private-key: ${{ secrets.SSH_KEY }}
|
||||
public-key: ${{ secrets.SSH_KEY_PUBLIC }}
|
||||
name: id_rsa # optional
|
||||
known-hosts: ${{ secrets.KNOWN_HOSTS }} # optional
|
||||
- name: Install packages
|
||||
run: apt install openssh-client rsync
|
||||
- name: rsync over ssh
|
||||
run: rsync -e "ssh -o StrictHostKeyChecking=no" ./foo/ user@remote:bar/
|
||||
run: rsync ./foo/ user@remote:bar/
|
||||
```
|
||||
|
||||
See [Workflow syntax for GitHub Actions](https://help.github.com/en/articles/workflow-syntax-for-github-actions) for details.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue