Skip to content

Commit

Permalink
Check SSH version (fixes #377)
Browse files Browse the repository at this point in the history
  • Loading branch information
LukeZGD committed Jan 7, 2024
1 parent 14963e9 commit 73583a7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 0 additions & 1 deletion resources/ssh_config
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,3 @@ Host *
StrictHostKeyChecking no
UserKnownHostsFile /dev/null
HostKeyAlgorithms +ssh-rsa
PubkeyAcceptedAlgorithms +ssh-rsa
6 changes: 6 additions & 0 deletions restore.sh
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,12 @@ set_tool_paths() {
idevicererestore+="$dir/idevicererestore"
ipwnder+="$dir/ipwnder"
irecovery2+="$dir/irecovery2"

cp ../resources/ssh_config .
if [[ $(ssh -V 2>&1 | grep -c SSH_8.8) == 1 || $(ssh -V 2>&1 | grep -c SSH_8.9) == 1 ||
$(ssh -V 2>&1 | grep -c SSH_9.) == 1 || $(ssh -V 2>&1 | grep -c SSH_10.) == 1 ]]; then
echo " PubkeyAcceptedAlgorithms +ssh-rsa" >> ssh_config
fi
scp2="scp -F ../resources/ssh_config"
ssh2="ssh -F ../resources/ssh_config"
}
Expand Down

0 comments on commit 73583a7

Please sign in to comment.