From jengelh@inai.de  Tue Dec 17 15:21:02 2013
Received: (at 377) by bugs.x2go.org; 17 Dec 2013 14:21:03 +0000
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on
	ymir.das-netzwerkteam.de
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham
	version=3.3.2
X-Greylist: delayed 363 seconds by postgrey-1.34 at ymir; Tue, 17 Dec 2013 15:21:02 CET
Received: from ares08.inai.de (ares08.inai.de [46.4.84.70])
	by ymir (Postfix) with ESMTPS id 400945DB16
	for <377@bugs.x2go.org>; Tue, 17 Dec 2013 15:21:02 +0100 (CET)
Received: by ares08.inai.de (Postfix, from userid 25121)
	id DAA0C10673FF2; Tue, 17 Dec 2013 15:14:59 +0100 (CET)
Received: from localhost (localhost [127.0.0.1])
	by ares08.inai.de (Postfix) with ESMTP id D692D1915A9C4
	for <377@bugs.x2go.org>; Tue, 17 Dec 2013 15:14:59 +0100 (CET)
Date: Tue, 17 Dec 2013 15:14:59 +0100 (CET)
From: Jan Engelhardt <jengelh@inai.de>
To: 377@bugs.x2go.org
Subject: Re: paramiko fails to recognize known_hosts
Message-ID: <alpine.LSU.2.11.1312171513370.19574@nerf08.vanv.qr>
User-Agent: Alpine 2.11 (LSU 23 2013-08-11)
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII


strace reveals this:

2844  open("//.ssh/known_hosts", O_RDONLY) = -1 ENOENT (No such file or
directory)

Looking at the environ of a newly-started x2gobroker:

# hexdump -C /proc/20044/environ
00000000  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
*
00000840  00 00 00 00 00 00 00                              |.......|
00000847
#

So the environment was modified inside python and I have no
further clue on what its actual state is, whether the environ
array just moved in memory (plausible), or destroyed in-place
leaving nothing for paramiko.

