Skip to content

Commit 287efdb

Browse files
committed
Hmm
1 parent b113cb8 commit 287efdb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/main.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ if [ -z "${INPUT_SSH_KEY}" ];then
3333
ssh-keygen -q -f /root/.ssh/id_rsa -N "" -C "docker-stack-deploy-action"
3434
eval "$(ssh-agent -s)"
3535
ssh-add /root/.ssh/id_rsa
36+
sshpass -p "${INPUT_PASS}" "${INPUT_USER}@${INPUT_HOST}" "whoami"
37+
sshpass -p "${INPUT_PASS}" "${INPUT_USER}@${INPUT_HOST}" "hostname"
3638
sshpass -p "${INPUT_PASS}" \
3739
ssh-copy-id -p "${INPUT_PORT}" -i /root/.ssh/id_rsa \
3840
"${INPUT_USER}@${INPUT_HOST}"

0 commit comments

Comments
 (0)