mirror of
https://github.com/LukeZGD/Legacy-iOS-Kit.git
synced 2025-02-17 00:46:23 +01:00
Check SSH version (fixes #377)
This commit is contained in:
parent
14963e9a2d
commit
73583a770a
@ -4,4 +4,3 @@ Host *
|
|||||||
StrictHostKeyChecking no
|
StrictHostKeyChecking no
|
||||||
UserKnownHostsFile /dev/null
|
UserKnownHostsFile /dev/null
|
||||||
HostKeyAlgorithms +ssh-rsa
|
HostKeyAlgorithms +ssh-rsa
|
||||||
PubkeyAcceptedAlgorithms +ssh-rsa
|
|
||||||
|
@ -292,6 +292,12 @@ set_tool_paths() {
|
|||||||
idevicererestore+="$dir/idevicererestore"
|
idevicererestore+="$dir/idevicererestore"
|
||||||
ipwnder+="$dir/ipwnder"
|
ipwnder+="$dir/ipwnder"
|
||||||
irecovery2+="$dir/irecovery2"
|
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"
|
scp2="scp -F ../resources/ssh_config"
|
||||||
ssh2="ssh -F ../resources/ssh_config"
|
ssh2="ssh -F ../resources/ssh_config"
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user