From b7ef3518757a400b339756f2acc9d08c71dfdb39 Mon Sep 17 00:00:00 2001 From: Roman Dodin Date: Thu, 22 Aug 2024 16:19:25 +0300 Subject: [PATCH] fix backup ports for bsd --- freebsd/docker/backup.sh | 4 ++-- openbsd/docker/backup.sh | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/freebsd/docker/backup.sh b/freebsd/docker/backup.sh index 33e9a581..4a8b4785 100755 --- a/freebsd/docker/backup.sh +++ b/freebsd/docker/backup.sh @@ -32,8 +32,8 @@ handle_args() { password=$DEFAULT_PASSWORD fi - SSH_CMD="sshpass -p $password ssh -o LogLevel=ERROR -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -p2022" - SCP_CMD="sshpass -p $password scp -o LogLevel=ERROR -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -P2022" + SSH_CMD="sshpass -p $password ssh -o LogLevel=ERROR -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null" + SCP_CMD="sshpass -p $password scp -o LogLevel=ERROR -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null" HOST="$user@localhost" # Parse commands diff --git a/openbsd/docker/backup.sh b/openbsd/docker/backup.sh index ed7a7e40..21ffb617 100755 --- a/openbsd/docker/backup.sh +++ b/openbsd/docker/backup.sh @@ -32,8 +32,8 @@ handle_args() { password=$DEFAULT_PASSWORD fi - SSH_CMD="sshpass -p $password ssh -o LogLevel=ERROR -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -p2022" - SCP_CMD="sshpass -p $password scp -o LogLevel=ERROR -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -P2022" + SSH_CMD="sshpass -p $password ssh -o LogLevel=ERROR -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null" + SCP_CMD="sshpass -p $password scp -o LogLevel=ERROR -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null" HOST="$user@localhost" # Parse commands