From 39750dfbd2f103c280b0b69780cf6380e82a4f52 Mon Sep 17 00:00:00 2001 From: MrRedacted Date: Thu, 19 May 2022 21:02:47 -0400 Subject: [PATCH] Fixed issue that caused default SSH key path to fail when using SSH key setup --- sharkjack.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sharkjack.sh b/sharkjack.sh index 8cf4155..2c74be4 100755 --- a/sharkjack.sh +++ b/sharkjack.sh @@ -312,7 +312,7 @@ function setup_shark(){ [[ -e $SSHKEYPATH ]] && printf "\n%s\n" "[!] $SSHKEYPATH does not exist" && sleep 2 && main_menu fi if [[ -z $SSHKEYPATH ]]; then - ssh-copy-id -i root@172.16.24.1 + ssh-copy-id "root@172.16.24.1" else ssh-copy-id -i $SSHKEYPATH "root@172.16.42.1" fi