From 1b5b6ca05e10d2a555b1bcbe4ca96bac08802c06 Mon Sep 17 00:00:00 2001 From: Alina Quereilhac Date: Sun, 9 Dec 2012 18:18:44 +0100 Subject: [PATCH] Adding StrictHostKeyChecking=no to ssh connection in the planetlab_ccnx_unicast.py example --- examples/ccnx/planetlab_ccnx_unicast.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/examples/ccnx/planetlab_ccnx_unicast.py b/examples/ccnx/planetlab_ccnx_unicast.py index 6b8667ae..e15f8a55 100644 --- a/examples/ccnx/planetlab_ccnx_unicast.py +++ b/examples/ccnx/planetlab_ccnx_unicast.py @@ -122,9 +122,14 @@ def exec_ccncatchunks(slicename, port, hostname): command += ' ccncatchunks2 ccnx:/VIDEO' login = "%s@%s" % (slicename, hostname) - proc1 = subprocess.Popen(['ssh', login, command], stdout=subprocess.PIPE, stderr=subprocess.PIPE, shell = False) + proc1 = subprocess.Popen(['ssh', + '-o', 'StrictHostKeyChecking=no', + login, + command], + stdout=subprocess.PIPE, stderr=subprocess.PIPE, shell = False) proc2 = subprocess.Popen(['vlc', + '--ffmpeg-threads=1', '--sub-filter', 'marq', '--marq-marquee', '(c) copyright 2008, Blender Foundation / www.bigbuckbunny.org', @@ -248,6 +253,7 @@ if __name__ == '__main__': 'planetlabpc2.upf.edu', 'planet2.elte.hu', 'planetlab2.esprit-tn.com' ] + ccn_local_port = os.environ.get('CCN_LOCAL_PORT') usage = "usage: %prog -s -H -k -u -p -v -N -c -d -P -x " -- 2.43.0