[bitbake-devel] [PATCH] fetch2/sftp: Set BatchMode=yes as argument to sftp
Olof Johansson
olof.johansson at axis.com
Thu Jul 9 10:04:07 UTC 2015
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.
Signed-off-by: Olof Johansson <olof.johansson at axis.com>
---
lib/bb/fetch2/sftp.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/bb/fetch2/sftp.py b/lib/bb/fetch2/sftp.py
index 8ea4ef2..cb2f753 100644
--- a/lib/bb/fetch2/sftp.py
+++ b/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
--
2.1.4
More information about the bitbake-devel
mailing list