Coin: Prefer publickey in QNX emulator ssh

When starting QNX emulator this makes VM to try to publickey first.

This avoids VM from trying to use gssapi-with-mic authentication,
which in some cases hangs indefinitely causing a timeout.

Pick-to: 6.8 6.7 6.5
Change-Id: I499c668a910851d97ce8de803a1064dcd7b0b74d
Reviewed-by: Jukka Jokiniva <jukka.jokiniva@qt.io>
This commit is contained in:
Toni Saario 2024-08-05 12:41:37 +03:00
parent 27eeb4485f
commit 97637f9094

View File

@ -32,7 +32,7 @@ instructions:
while :; do while :; do
echo "Waiting QEMU SSH coming up" echo "Waiting QEMU SSH coming up"
status=$(ssh -o BatchMode=yes -o ConnectTimeout=1 ${QEMUIPADDR} echo ok 2>&1) status=$(ssh -o PreferredAuthentications=publickey -o BatchMode=yes -o ConnectTimeout=1 ${QEMUIPADDR} echo ok 2>&1)
RESULT=$? RESULT=$?
if [ $RESULT -eq 0 ]; then if [ $RESULT -eq 0 ]; then
echo "QEMU SSH Connected ok" echo "QEMU SSH Connected ok"