mirror of
https://github.com/LukeZGD/Legacy-iOS-Kit.git
synced 2024-12-24 15:21:49 +01:00
Check SSH version (fixes #377)
This commit is contained in:
parent
14963e9a2d
commit
73583a770a
@ -4,4 +4,3 @@ Host *
|
||||
StrictHostKeyChecking no
|
||||
UserKnownHostsFile /dev/null
|
||||
HostKeyAlgorithms +ssh-rsa
|
||||
PubkeyAcceptedAlgorithms +ssh-rsa
|
||||
|
@ -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"
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user