Skip to content

Commit

Permalink
Hotfix: ssh connection
Browse files Browse the repository at this point in the history
  • Loading branch information
levisingularity committed May 3, 2024
1 parent 6e4fc9d commit 26f2120
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scripts/deployment/fn_deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ function register_server() {
is_pem=true
pem_or_password=$(text_prompt "Enter the path for the pem key file: ")

if verify_file_exists "$pem_key"; then
if verify_file_exists "$pem_or_password"; then
break
fi
do true; done
Expand Down
2 changes: 1 addition & 1 deletion scripts/deployment/utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ function execute_ssh_commands() {
commands_str=${commands_str%&& }

if [ "$using_private_key" == true ]; then
ssh -T -i "$pem_key_path" $server_username@$server_ip "$commands_str"
ssh -T -i "$pkey_or_password" $server_username@$server_ip "$commands_str"
else
sshpass -p "$pkey_or_password" ssh -o StrictHostKeyChecking=no -T $server_username@$server_ip "$commands_str"
fi
Expand Down

0 comments on commit 26f2120

Please sign in to comment.