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


đź”— View this message in rfc822 format

MIME-Version: 1.0
X-Mailer: MIME-tools 5.509 (Entity 5.509)
X-Loop: owner@bugs.x2go.org
From: owner@bugs.x2go.org (X2Go Bug Tracking System)
Subject: Bug#1506 closed by Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
 (Closing...)
Message-ID: <handler.1506.b1506.170535069531115.notifdone@bugs.x2go.org>
References: <20240115203132.Horde.xxwlUK-hrrNYutpo7YiL-NB@mail.das-netzwerkteam.de>
X-X2go-PR-Message: they-closed 1506
X-X2go-PR-Package: pyhoca-cli
X-X2go-PR-Source: pyhoca-cli
Date: Mon, 15 Jan 2024 20:35:02 +0000
Content-Type: multipart/mixed; boundary="----------=_1705350902-32093-0"
[Message part 1 (text/plain, inline)]
This is an automatic notification regarding your Bug report
which was filed against the pyhoca-cli package:

#1506: pyhoca-cli should take the username from ~/.ssh/config

It has been closed by Mike Gabriel <mike.gabriel@das-netzwerkteam.de>.

Their explanation is attached below along with your original report.
If this explanation is unsatisfactory and you have not received a
better one in a separate message then please contact Mike Gabriel <mike.gabriel@das-netzwerkteam.de> by
replying to this email.


-- 
1506: https://bugs.x2go.org/cgi-bin/bugreport.cgi?bug=1506
X2Go Bug Tracking System
Contact owner@bugs.x2go.org with problems
[Message part 2 (message/rfc822, inline)]
From: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
To: 1506@bugs.x2go.org
Subject: Closing...
Date: Mon, 15 Jan 2024 20:31:32 +0000
[Message part 3 (text/plain, inline)]
Control: close -1

Discussion continued here:
https://gitlab.x2go.org/x2go/client/libs/python-x2go/-/issues/6


-- 

DAS-NETZWERKTEAM
c\o Technik- und Ökologiezentrum Eckernförde
Mike Gabriel, Marienthaler Str. 17, 24340 Eckernförde
mobile: +49 (1520) 1976 148
landline: +49 (4351) 850 8940

GnuPG Fingerprint: 9BFB AEE8 6C0A A5FF BF22  0782 9AF4 6B30 2577 1B31
mail: mike.gabriel@das-netzwerkteam.de, http://das-netzwerkteam.de

[Message part 4 (application/pgp-signature, inline)]
[Message part 5 (message/rfc822, inline)]
From: "R. Diez" <rdiezmail-2006@yahoo.de>
To: submit@bugs.x2go.org
Subject: pyhoca-cli should take the username from ~/.ssh/config
Date: Mon, 23 Nov 2020 20:17:48 +0100
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:31:04 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.