Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

paramiko backend does not honour "User" attribute from ~/.ssh/config #2582

Closed
totaam opened this issue Feb 7, 2020 · 7 comments
Closed

paramiko backend does not honour "User" attribute from ~/.ssh/config #2582

totaam opened this issue Feb 7, 2020 · 7 comments
Labels

Comments

@totaam
Copy link
Collaborator

totaam commented Feb 7, 2020

Issue migrated from trac ticket # 2582

component: client | priority: minor | resolution: fixed

2020-02-07 12:51:00: stdedos created the issue


Based on #2549#comment:6 this comment, I would expect that it would work for Ubuntu.

I tried to find xpra/platform/path.py tool to check if there is more information, but there seems to be nothing:

$ locate */path.py | grep xpra
$

My case:

u@h$ xpra shadow ssh://viewer
xpra for python 2.7 is not installed
 retrying with python3
2020-02-07 13:26:06,827 Xpra GTK3 X11 client version 3.0.6-[r25073](../commit/402f5080f4ac48c625dbb62533618499ab9f1921) 64-bit
2020-02-07 13:26:06,902  running on Linux Ubuntu 16.04 xenial
2020-02-07 13:26:06,903  window manager is 'Compiz'
2020-02-07 13:26:07,045 No OpenGL_accelerate module loaded: No module named 'OpenGL_accelerate'
2020-02-07 13:26:07,681 OpenGL enabled with Quadro P400/PCIe/SSE2
2020-02-07 13:26:07,816 Connected (version 2.0, client OpenSSH_7.6p1)
/usr/lib/python3/dist-packages/Crypto/Cipher/blockalgo.py:141: FutureWarning: CTR mode needs counter parameter, not IV
  self._cipher = factory.new(key, *args, **kwargs)
2020-02-07 13:26:08,101 agent authentication failed, tried 2 keys
2020-02-07 13:26:08,101 SSH password authentication failed:
2020-02-07 13:26:08,101  No existing session
please enter the SSH password for u@viewer:
caught KeyboardInterrupt(), exiting
u@h$ grep viewer ~/.ssh/config 
Host viewer 172.16.57.99
	User viewer

(Emphasis mine)

u@h$ xpra shadow ssh://viewer@viewer
xpra for python 2.7 is not installed
 retrying with python3
2020-02-07 13:26:31,750 Xpra GTK3 X11 client version 3.0.6-[r25073](../commit/402f5080f4ac48c625dbb62533618499ab9f1921) 64-bit
2020-02-07 13:26:31,819  running on Linux Ubuntu 16.04 xenial
2020-02-07 13:26:31,820  window manager is 'Compiz'
2020-02-07 13:26:31,918 No OpenGL_accelerate module loaded: No module named 'OpenGL_accelerate'
2020-02-07 13:26:32,433 OpenGL enabled with Quadro P400/PCIe/SSE2
2020-02-07 13:26:32,484 Connected (version 2.0, client OpenSSH_7.6p1)
/usr/lib/python3/dist-packages/Crypto/Cipher/blockalgo.py:141: FutureWarning: CTR mode needs counter parameter, not IV
  self._cipher = factory.new(key, *args, **kwargs)

2020-02-07 13:26:32,672 Authentication (publickey) successful!


2020-02-07 13:26:33,302  keyboard settings: rules=evdev, model=pc105, layout=us
2020-02-07 13:26:33,305  desktop size is 6400x1440 with 1 screen:
2020-02-07 13:26:33,305   :0.0 (1693x381 mm - DPI: 96x96) workarea: 6341x1416 at 59x24
2020-02-07 13:26:33,305     DP-0 2560x1440 (597x336 mm - DPI: 108x108)
2020-02-07 13:26:33,305     DP-2 1920x1080 at 2560x180 (527x296 mm - DPI: 92x92)
2020-02-07 13:26:33,305     DP-4 1920x1080 at 4480x180 (527x296 mm - DPI: 92x92)
2020-02-07 13:26:33,306  upscaled to 125%, virtual screen size: 5120x1152
2020-02-07 13:26:33,306   :0.0 (1693x381 mm - DPI: 76x76) workarea: 5073x1133 at 47x19
2020-02-07 13:26:33,306     DP-0 2048x1152 (597x336 mm - DPI: 87x87)
2020-02-07 13:26:33,306     DP-2 1536x864 at 2048x144 (527x296 mm - DPI: 74x74)
2020-02-07 13:26:33,306     DP-4 1536x864 at 3584x144 (527x296 mm - DPI: 74x74)
2020-02-07 13:26:33,331 Warning: invalid frame extents value '[0, 0, 0, 0, 0, 0, 28, 0]'
2020-02-07 13:26:33,331  this is probably a bug in 'Compiz'
2020-02-07 13:26:33,331  using '[0, 0, 28, 0]' instead
2020-02-07 13:26:43,395 enabled remote logging
2020-02-07 13:26:43,395 Xpra GTK3 shadow server version 3.0.5-24939 64-bit
2020-02-07 13:26:43,396  running on Linux Ubuntu 18.04 bionic
2020-02-07 13:26:43,396  not scaling a shadow server
2020-02-07 13:26:43,397 setting scaling to 100%:
2020-02-07 13:26:43,400 sending updated screen size to server: 6400x1440 with 1 screens
2020-02-07 13:26:43,400   :0.0 (1693x381 mm - DPI: 96x96) workarea: 6341x1416 at 59x24
2020-02-07 13:26:43,400     DP-0 2560x1440 (597x336 mm - DPI: 108x108)
2020-02-07 13:26:43,400     DP-2 1920x1080 at 2560x180 (527x296 mm - DPI: 92x92)
2020-02-07 13:26:43,400     DP-4 1920x1080 at 4480x180 (527x296 mm - DPI: 92x92)
2020-02-07 13:26:43,529 server does not support xi input devices
2020-02-07 13:26:43,529  server uses: auto
2020-02-07 13:28:45,524 window-close event on desktop or shadow window, disconnecting
/usr/lib/python3/dist-packages/xpra/client/gtk_base/gtk_client_base.py:150: Warning: g_object_ref: assertion 'G_IS_OBJECT (object)' failed
  gtk_main()
@totaam
Copy link
Collaborator Author

totaam commented Feb 7, 2020

2020-02-07 13:04:35: antoine changed status from new to assigned

@totaam
Copy link
Collaborator Author

totaam commented Feb 7, 2020

2020-02-07 13:04:35: antoine edited the issue description

@totaam
Copy link
Collaborator Author

totaam commented Feb 7, 2020

2020-02-07 13:04:35: antoine commented


Will fix.

@totaam
Copy link
Collaborator Author

totaam commented Feb 8, 2020

2020-02-08 06:12:31: antoine changed status from assigned to closed

@totaam
Copy link
Collaborator Author

totaam commented Feb 8, 2020

2020-02-08 06:12:31: antoine set resolution to fixed

@totaam
Copy link
Collaborator Author

totaam commented Feb 8, 2020

2020-02-08 06:12:31: antoine changed title from paramiko backend does not read ~/.ssh/config to paramiko backend does not honour "User" attribute from ~/.ssh/config

@totaam
Copy link
Collaborator Author

totaam commented Feb 8, 2020

2020-02-08 06:12:31: antoine commented


This turned out to be a "typo": r25181. You can apply this by hand, this will be in the next builds.

See also: r25182, r25183, r25184.

-Important*: see notes in #2567#comment:4.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant