2023-12-28 17:49:41 -05:00
|
|
|
#!/bin/bash
|
2023-12-28 18:31:23 -05:00
|
|
|
#set -x
|
2023-12-28 17:49:41 -05:00
|
|
|
apt-get update && apt-get install --yes --no-install-recommends rsync git openssh-client curl sshpass
|
|
|
|
eval $(ssh-agent -s)
|
|
|
|
chmod 600 $1
|
|
|
|
ssh-add $1
|
|
|
|
mkdir -p ~/.ssh
|
|
|
|
[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config
|