We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0f2548a commit 9b921ddCopy full SHA for 9b921dd
src/main.sh
@@ -36,8 +36,9 @@ if [ -z "${INPUT_SSH_KEY}" ];then
36
echo "HOME: ${HOME}"
37
export INPUT_PASS
38
sshpass -h ||:
39
- sshpass -eINPUT_PASS ssh "${INPUT_USER}@${INPUT_HOST}" "pwd" ||:
40
- sshpass -eINPUT_PASS ssh "${INPUT_USER}@${INPUT_HOST}" "ls -lAh ~/.ssh"
+ /usr/bin/ssh-copy-id -h ||:
+ sshpass -p "${INPUT_PASS}" ssh -o BatchMode=yes -o ConnectTimeout=30 "${INPUT_USER}@${INPUT_HOST}" "pwd" ||:
41
+ sshpass -eINPUT_PASS ssh -o BatchMode=yes -o ConnectTimeout=30 "${INPUT_USER}@${INPUT_HOST}" "ls -lAh ~/.ssh"
42
sshpass -eINPUT_PASS -v \
43
ssh-copy-id -p "${INPUT_PORT}" -i /root/.ssh/id_rsa \
44
-o BatchMode=yes -o ConnectTimeout=30 "${INPUT_USER}@${INPUT_HOST}"
0 commit comments