debug show env
This commit is contained in:
parent
b98fd9d4f3
commit
ee07199472
1 changed files with 1 additions and 13 deletions
|
@ -5,25 +5,13 @@ mkdir -p ~/.ssh/
|
||||||
# Print the SSH key, replacing newline characters with actual new lines
|
# Print the SSH key, replacing newline characters with actual new lines
|
||||||
echo "$INPUT_REMOTE_KEY" | tr -d '\r' > ~/.ssh/id_rsa
|
echo "$INPUT_REMOTE_KEY" | tr -d '\r' > ~/.ssh/id_rsa
|
||||||
|
|
||||||
echo host: $INPUT_REMOTE_HOST
|
|
||||||
echo user: $INPUT_REMOTE_USER
|
|
||||||
echo params: $INPUT_RSYNC_PARAMETERS
|
|
||||||
echo path: $INPUT_PATH
|
|
||||||
echo remote_path: $INPUT_REMOTE_PATH
|
|
||||||
|
|
||||||
# Set appropriate permissions for the SSH key
|
# Set appropriate permissions for the SSH key
|
||||||
chmod 600 ~/.ssh/id_rsa
|
chmod 600 ~/.ssh/id_rsa
|
||||||
|
|
||||||
# Add the remote host's key to the known_hosts file to avoid authenticity confirmation
|
# Add the remote host's key to the known_hosts file to avoid authenticity confirmation
|
||||||
ssh-keyscan -H ${INPUT_REMOTE_HOST} >> ~/.ssh/known_hosts
|
ssh-keyscan -H ${INPUT_REMOTE_HOST} >> ~/.ssh/known_hosts
|
||||||
|
|
||||||
cat ~/.ssh/known_hosts
|
|
||||||
|
|
||||||
|
|
||||||
# SCP files to the remote host
|
# SCP files to the remote host
|
||||||
echo rsync ${INPUT_RSYNC_PARAMETERS} ${INPUT_PATH} ${INPUT_REMOTE_USER}@${INPUT_REMOTE_HOST}:${INPUT_REMOTE_PATH}
|
rsync ${INPUT_RSYNC_PARAMETERS} ${INPUT_PATH} ${INPUT_REMOTE_USER}@${INPUT_REMOTE_HOST}:${INPUT_REMOTE_PATH}
|
||||||
|
|
||||||
pwd
|
|
||||||
ls -lisaR
|
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
|
Loading…
Add table
Reference in a new issue