From 97c5ecffaab5c276781e71d00abad8d4ed1fa91c Mon Sep 17 00:00:00 2001 From: Olof Johansson Date: Thu, 9 Jul 2015 12:04:07 +0200 Subject: bitbake: fetch2/sftp: Set BatchMode=yes as argument to sftp Set BatchMode=yes instead of PasswordAuthentication=no. This will make sftp fail immediately, not only when SSH requires interactive authentication, but also on errors related to host key verifcation. (Bitbake rev: 31305853a177735cc9c4553ea8905cd0acfcb100) Signed-off-by: Olof Johansson Signed-off-by: Richard Purdie --- bitbake/lib/bb/fetch2/sftp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bitbake/lib/bb/fetch2/sftp.py b/bitbake/lib/bb/fetch2/sftp.py index 8ea4ef2ff3..cb2f753a8e 100644 --- a/bitbake/lib/bb/fetch2/sftp.py +++ b/bitbake/lib/bb/fetch2/sftp.py @@ -99,7 +99,7 @@ class SFTP(FetchMethod): """Fetch urls""" urlo = URI(ud.url) - basecmd = 'sftp -oPasswordAuthentication=no' + basecmd = 'sftp -oBatchMode=yes' port = '' if urlo.port: port = '-P %d' % urlo.port -- cgit v1.2.3-54-g00ecf