ssh 준비 스크립트 포트 추가

Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
2026-04-30 20:18:07 +09:00
parent b068a30835
commit a30a70125a
2 changed files with 4 additions and 1 deletions

BIN
.DS_Store vendored Normal file

Binary file not shown.

View File

@@ -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