mirror of
https://github.com/appleboy/ssh-action.git
synced 2024-12-19 20:29:05 +00:00
support passphrase (#18)
* support passphrase Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
parent
d690bdebf8
commit
e5c07fceef
12
.github/workflows/ci.yml
vendored
12
.github/workflows/ci.yml
vendored
@ -75,3 +75,15 @@ jobs:
|
|||||||
script: |
|
script: |
|
||||||
echo "I am $FOO, thanks"
|
echo "I am $FOO, thanks"
|
||||||
echo "I am $BAR, thanks"
|
echo "I am $BAR, thanks"
|
||||||
|
|
||||||
|
- name: ssh key passphrase
|
||||||
|
uses: appleboy/ssh-action@master
|
||||||
|
with:
|
||||||
|
host: ${{ secrets.HOST }}
|
||||||
|
username: ${{ secrets.USERNAME }}
|
||||||
|
key: ${{ secrets.SSH2 }}
|
||||||
|
port: ${{ secrets.PORT }}
|
||||||
|
passphrase: ${{ secrets.PASSPHRASE }}
|
||||||
|
script: |
|
||||||
|
whoami
|
||||||
|
ls -al
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
FROM appleboy/drone-ssh:1.5.4-linux-amd64
|
FROM appleboy/drone-ssh:1.5.5-linux-amd64
|
||||||
|
|
||||||
ADD entrypoint.sh /entrypoint.sh
|
ADD entrypoint.sh /entrypoint.sh
|
||||||
RUN chmod +x /entrypoint.sh
|
RUN chmod +x /entrypoint.sh
|
||||||
|
@ -7,6 +7,8 @@ inputs:
|
|||||||
port:
|
port:
|
||||||
description: 'ssh remote port'
|
description: 'ssh remote port'
|
||||||
default: 22
|
default: 22
|
||||||
|
passphrase:
|
||||||
|
description: 'ssh key passphrase'
|
||||||
username:
|
username:
|
||||||
description: 'ssh username'
|
description: 'ssh username'
|
||||||
password:
|
password:
|
||||||
@ -30,6 +32,8 @@ inputs:
|
|||||||
description: 'ssh proxy username'
|
description: 'ssh proxy username'
|
||||||
proxy_password:
|
proxy_password:
|
||||||
description: 'ssh proxy password'
|
description: 'ssh proxy password'
|
||||||
|
proxy_passphrase:
|
||||||
|
description: 'ssh proxy key passphrase'
|
||||||
proxy_timeout:
|
proxy_timeout:
|
||||||
description: 'timeout for ssh to proxy host'
|
description: 'timeout for ssh to proxy host'
|
||||||
default: "30s"
|
default: "30s"
|
||||||
|
Loading…
Reference in New Issue
Block a user