@@ -6,6 +6,9 @@ inputs:
|
|||||||
required: true
|
required: true
|
||||||
host:
|
host:
|
||||||
required: true
|
required: true
|
||||||
|
port:
|
||||||
|
required: false
|
||||||
|
default: "22"
|
||||||
key-path:
|
key-path:
|
||||||
required: false
|
required: false
|
||||||
default: ~/.ssh/deploy_key
|
default: ~/.ssh/deploy_key
|
||||||
@@ -23,4 +26,4 @@ runs:
|
|||||||
printf '%s\n' "${{ inputs.ssh-key }}" > ${{ inputs.key-path }}
|
printf '%s\n' "${{ inputs.ssh-key }}" > ${{ inputs.key-path }}
|
||||||
chmod 600 ${{ inputs.key-path }}
|
chmod 600 ${{ inputs.key-path }}
|
||||||
|
|
||||||
ssh-keyscan -H "${{ inputs.host }}" >> ~/.ssh/known_hosts
|
ssh-keyscan -p ${{ inputs.port }} -H "${{ inputs.host }}" >> ~/.ssh/known_hosts
|
||||||
Reference in New Issue
Block a user