X2Go Bug report logs - #1506
pyhoca-cli should take the username from ~/.ssh/config

version graph

Package: pyhoca-cli; Maintainer for pyhoca-cli is X2Go Developers <x2go-dev@lists.x2go.org>; Source for pyhoca-cli is src:pyhoca-cli.

Reported by: "R. Diez" <rdiezmail-2006@yahoo.de>

Date: Mon, 23 Nov 2020 19:20:02 UTC

Severity: wishlist

Found in version 0.6.1.2

Done: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>

Bug is archived. No further changes may be made.

Full log


Message #5 received at submit@bugs.x2go.org (full text, mbox, reply):

Received: (at submit) by bugs.x2go.org; 23 Nov 2020 19:18:19 +0000
From ruben10post@yahoo.de  Mon Nov 23 20:18:00 2020
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on
	ymir.das-netzwerkteam.de
X-Spam-Level: 
X-Spam-Status: No, score=0.7 required=3.0 tests=BAYES_50,DKIM_SIGNED,
	DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,
	URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2
Received: from sonic310-11.consmr.mail.ir2.yahoo.com (sonic310-11.consmr.mail.ir2.yahoo.com [77.238.177.32])
	by ymir.das-netzwerkteam.de (Postfix) with ESMTPS id ED5435DAD6
	for <submit@bugs.x2go.org>; Mon, 23 Nov 2020 20:17:57 +0100 (CET)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.de; s=s2048; t=1606159077; bh=aOFXFuDFQycX034EtRI9vUsbm9/xn+dZK5XMVRKOZ3g=; h=To:From:Subject:Date:References:From:Subject; b=UwILNeCw7WIerdTyBBsMF+k00WJe/8Q4SXpiAz1GZ710mdzX1wUaa/RZs3xTTVoqyQ3II8N5iz2NDvzIGUBymoBHoo2ji/ZeaM1yT6d0JdubappiMsMTDmHm/KCCHI6G4FzL4ia/VHSOJH057+Eg8w0OlNGjwfNDVSmV8kJ4iqcCgJ/0+M2a3uzC+/WmEqTbb9llPBjlIekRH27Uu7WBYavT1GfR+w+gggJOxT7522/oVpKq6uQQ64R8ZJVY3pfRw7Je3PnfgFl8KpfTknfwEkQHEoWiHQizTHaUHA16lM/JnGZyL2se6cQamUR8+L7NziaK+q5o+wD6x2fhaj4Myg==
X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1606159077; bh=TjGK/clwVD3GCeUcdi6ehEzupc20yaueF1/cFq7p0L3=; h=To:From:Subject:Date:From:Subject; b=fOmmDFmRTohXtSkGtTFxX+F7TrVM3fL+DzX4kdp7tBxE0/PltzZF3o+4GRM2xC8+ECqMZ3oeH8ZohSTeO7OzcCVI6sqFo1COaGrp6r5UCyGcJcy452y22c5sdG9WTuKxwEDjXq5/laDRHF4FP/7mu+ijm3RU2sGXk2NQ43DuujlyvdDKxz8ANrHsisYIbq+bL4jOW2sFc79VH91nqQyDLfnNA/EB6WXONNXC1y8840lKSkwfHIQskC8pV5ro+K6+3T7KU+bqoBCjmCP92X9odbgY+gFeAyiSaY81tPyB8FPaB2K238jnKjbNHxU54flfClundX0Lw/4OHK5hS/Rvww==
X-YMail-OSG: ibtQkkwVM1lbhNWz4qXaXgg0nTmIL9wdC0XGU.MaRMlAfesOA9xG7Q2JZ4kmUB8
 GMowF9XgBZZb_NFCmzxZS1FFlYlWkBSZoREVeJfpTyACNO7a4lZBTPCPgkrvYWsOOzylG0mm5gKJ
 EXUYWoISclmmOlveS7NrZPPr9o.iGgShXe1fp380kjrQbknXg8CWFZCk_chEUsZ3eoHp_tD_omlO
 gIt7K86X13b9_rHFfdp0StkF0kRcWrzoxDQ8gXj9ivjc2DQoCn3LTgzMP4vnhtXfx9JWYOp2S6Df
 6VQMOoUoEmeU08Okrvj6r4kABftwSrWe3k8t55nZZFPRSlaZ3_3J2NspERFR4k1ENXFR6IOPliHx
 Sc.5BO7WjeR8ULcZwrYd.BNLg85WNei.ybTnDHFEGCbhvQKjCXx_ijE0eytEev3Rion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 +0000
Received: by smtp414.mail.ne1.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID 7a7b5763a8a94d50e4e5c81bdd99dbbf;
          Mon, 23 Nov 2020 19:17:52 +0000 (UTC)
To: submit@bugs.x2go.org
From: "R. Diez" <rdiezmail-2006@yahoo.de>
Subject: pyhoca-cli should take the username from ~/.ssh/config
Message-ID: <9ebb482b-1ed8-74b2-0800-977e89b4a81f@yahoo.de>
Date: Mon, 23 Nov 2020 20:17:48 +0100
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101
 Thunderbird/68.10.0
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-GB
Content-Transfer-Encoding: 7bit
References: <9ebb482b-1ed8-74b2-0800-977e89b4a81f.ref@yahoo.de>
X-Mailer: WebService/1.1.17111 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Apache-HttpAsyncClient/4.1.4 (Java/11.0.8)
Package: pyhoca-cli
Version: 0.6.1.2
Severity: wishlist

Hi there:

First of all, thanks for x2go and pyhoca-cli.

In my ~/.ssh/config , I have the following entry:

Host MY_SSH_HOST_FRIENDLY_NAME
  HostName example.com
  Port 12345
  User someuser
  IdentityFile /home/blah/blah/id_rsa_blah_blah
  CheckHostIP no

So that this works straight away:

ssh MY_SSH_HOST_FRIENDLY_NAME

pyhoca-cli is somehow using some of the settings above, like "HostName", "Port" and "IdentityFile". However, it is not using "User". Therefore, the 
following fails:

pyhoca-cli  --new  --try-resume  --command MATE  --sound=none  --link isdn  --pack 16m-jpeg-6  --server MY_SSH_HOST_FRIENDLY_NAME

The log is:

pyhoca-cli[95058] NOTICE: preparing requested X2Go session
pyhoca-cli[95058] (PyHocaCLI) NOTICE: preparing requested X2Go session
pyhoca-cli[95058] (x2gosessregistry-pylib) NOTICE: registering X2Go session Pyhoca-Client_Session...
pyhoca-cli[95058] (x2goclient-pylib) NOTICE: initializing X2Go session...
pyhoca-cli[95058] (x2gocontrolsession-pylib) NOTICE: connecting to [example.chickenkiller.com]:56787
pyhoca-cli[95058] (PyHocaCLI) WARN: passwordless login for ,,mycurrentusername'' failed [SSHException]
pyhoca-cli: error: No existing session

The workaround is to always specify --username=xxx when running pyhoca-cli .

I would be nice if pyhoca-cli did not always default to the current username, but to the one in ~/.ssh/config (if at all present).

Regards,
  rdiez


Send a report that this bug log contains spam.


X2Go Developers <owner@bugs.x2go.org>. Last modified: Sun Nov 24 12:52:40 2024; Machine Name: ymir.das-netzwerkteam.de

X2Go Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.