From 7031273ed3509cbb3f06252152e94d7dbce26139 Mon Sep 17 00:00:00 2001 From: mutantmonkey Date: Sat, 2 Jun 2018 23:34:47 -0700 Subject: [PATCH] appvm-xpra: use HostKeyAlias for libvirt lookups Since the IP address is likely to change, the best option is to use a consistent HostKeyAlias --- appvm-xpra | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/appvm-xpra b/appvm-xpra index 79b852e..028d934 100755 --- a/appvm-xpra +++ b/appvm-xpra @@ -3,6 +3,7 @@ import argparse import libvirt import os +import socket import subprocess import yaml @@ -99,6 +100,12 @@ if __name__ == '__main__': ssh_args += ['-i', identity_file] if user is not None: ssh_args += ['-l', user] + if not args.skip_libvirt: + ssh_args += [ + '-o', + 'HostKeyAlias=appvm:{0}:{1}'.format(socket.gethostname(), + domain_name) + ] ssh_args.append(xpra_host) if args.shell: -- 2.51.2