summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/fetch2/sftp.py
diff options
context:
space:
mode:
authorOlof Johansson <olof.johansson@axis.com>2015-07-09 12:04:07 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-07-12 22:50:41 +0100
commit97c5ecffaab5c276781e71d00abad8d4ed1fa91c (patch)
tree49a72556c256d92d85709ef5edf933fe6c6cb2f0 /bitbake/lib/bb/fetch2/sftp.py
parent518abb731ce27a606f0a17c26b324b9d57abfe18 (diff)
downloadpoky-97c5ecffaab5c276781e71d00abad8d4ed1fa91c.tar.gz
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 <olof.johansson@axis.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/fetch2/sftp.py')
-rw-r--r--bitbake/lib/bb/fetch2/sftp.py2
1 files changed, 1 insertions, 1 deletions
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):
99 """Fetch urls""" 99 """Fetch urls"""
100 100
101 urlo = URI(ud.url) 101 urlo = URI(ud.url)
102 basecmd = 'sftp -oPasswordAuthentication=no' 102 basecmd = 'sftp -oBatchMode=yes'
103 port = '' 103 port = ''
104 if urlo.port: 104 if urlo.port:
105 port = '-P %d' % urlo.port 105 port = '-P %d' % urlo.port