X2Go Bug report logs -
#1506
pyhoca-cli should take the username from ~/.ssh/config
Reply or subscribe to this bug.
Toggle useless messages
Report forwarded
to x2go-dev@lists.x2go.org, X2Go Developers <x2go-dev@lists.x2go.org>
:
Bug#1506
; Package pyhoca-cli
.
(Mon, 23 Nov 2020 19:20:02 GMT) (full text, mbox, link).
Acknowledgement sent
to "R. Diez" <rdiezmail-2006@yahoo.de>
:
New Bug report received and forwarded. Copy sent to X2Go Developers <x2go-dev@lists.x2go.org>
.
(Mon, 23 Nov 2020 19:20:02 GMT) (full text, mbox, link).
Message #5 received at submit@bugs.x2go.org (full text, mbox, reply):
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:
Thu Oct 5 02:29:39 2023;
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.