@@ -6,6 +6,9 @@ inputs:
|
||||
required: true
|
||||
host:
|
||||
required: true
|
||||
port:
|
||||
required: false
|
||||
default: "22"
|
||||
key-path:
|
||||
required: false
|
||||
default: ~/.ssh/deploy_key
|
||||
@@ -23,4 +26,4 @@ runs:
|
||||
printf '%s\n' "${{ inputs.ssh-key }}" > ${{ 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