From: Alina Quereilhac Date: Sun, 9 Dec 2012 17:18:44 +0000 (+0100) Subject: Adding StrictHostKeyChecking=no to ssh connection in the planetlab_ccnx_unicast.py... X-Git-Tag: nepi-3.0.0~136 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=1b5b6ca05e10d2a555b1bcbe4ca96bac08802c06;p=nepi.git Adding StrictHostKeyChecking=no to ssh connection in the planetlab_ccnx_unicast.py example --- 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 "