diff options
author | Steve Sakoman <steve@sakoman.com> | 2022-10-17 07:31:45 -1000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-10-27 16:54:43 +0100 |
commit | 43a224f247498e94c68abb99c6936c9da88a6ea1 (patch) | |
tree | e8a368bef407c39bb3acf17208f02cf11a581d94 /scripts | |
parent | 8ce85b6c6c00616ba52e4616c707670643255b10 (diff) | |
download | poky-43a224f247498e94c68abb99c6936c9da88a6ea1.tar.gz |
devtool: add HostKeyAlgorithms option to ssh and scp commands
With the newer version of ssh in Ubuntu 22.04 we are getting errors of this type:
Unable to negotiate with 192.168.7.2 port 22: no matching host key type found. Their offer: ssh-rsa
Add -o HostKeyAlgorithms=+ssh-rsa to command invocation as suggested at:
http://www.openssh.com/legacy.html
(From OE-Core rev: 9275d23c782071382c201bca2d647f6426a64e2f)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/lib/devtool/deploy.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/lib/devtool/deploy.py b/scripts/lib/devtool/deploy.py index e0f8e64b9c..b4f9fbfe45 100644 --- a/scripts/lib/devtool/deploy.py +++ b/scripts/lib/devtool/deploy.py | |||
@@ -201,9 +201,9 @@ def deploy(args, config, basepath, workspace): | |||
201 | print(' %s' % item) | 201 | print(' %s' % item) |
202 | return 0 | 202 | return 0 |
203 | 203 | ||
204 | extraoptions = '' | 204 | extraoptions = '-o HostKeyAlgorithms=+ssh-rsa' |
205 | if args.no_host_check: | 205 | if args.no_host_check: |
206 | extraoptions += '-o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no' | 206 | extraoptions += ' -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no' |
207 | if not args.show_status: | 207 | if not args.show_status: |
208 | extraoptions += ' -q' | 208 | extraoptions += ' -q' |
209 | 209 | ||
@@ -274,9 +274,9 @@ def undeploy(args, config, basepath, workspace): | |||
274 | elif not args.recipename and not args.all: | 274 | elif not args.recipename and not args.all: |
275 | raise argparse_oe.ArgumentUsageError('If you don\'t specify a recipe, you must specify -a/--all', 'undeploy-target') | 275 | raise argparse_oe.ArgumentUsageError('If you don\'t specify a recipe, you must specify -a/--all', 'undeploy-target') |
276 | 276 | ||
277 | extraoptions = '' | 277 | extraoptions = '-o HostKeyAlgorithms=+ssh-rsa' |
278 | if args.no_host_check: | 278 | if args.no_host_check: |
279 | extraoptions += '-o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no' | 279 | extraoptions += ' -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no' |
280 | if not args.show_status: | 280 | if not args.show_status: |
281 | extraoptions += ' -q' | 281 | extraoptions += ' -q' |
282 | 282 | ||