-
-
Notifications
You must be signed in to change notification settings - Fork 174
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
SSH Host Key incorrectly used and checked on Windows #4003
Comments
There is no This is not an xpra bug, the known hosts file is managed using the paramiko API: xpra/xpra/net/ssh/paramiko_client.py Line 558 in 0f036f0
And this API doesn't have an argument for the port number: https://docs.paramiko.org/en/latest/api/hostkeys.html#paramiko.hostkeys.HostKeys.add You may want to switch to putty for this use-case. |
Hi Totamm, You do not need the API provides port number as an argument, the [IP]:Port and [Host]:Port is hostname.
And I have written a short test code for verifying paramiko support it.
Let me try if I can make a PR. |
Bump. |
Bump. |
Not heard back, closing. |
Describe the bug
Start a server that has two SSHDs, with different ports, with different keys.
To Reproduce
Steps to reproduce the behavior:
&"C:\Program Files\Xpra\Xpra_cmd.exe" attach ssh://username@HOST/XPRA_PORT
Xpra will write on (Windows Client)
~/.ssh/know_hosts
without ssh portMY_DOMAIN_NAME ssh-ed25519 AAAAC3NzaC1SSH_Key_On_22_Port
&"C:\Program Files\Xpra\Xpra_cmd.exe" attach ssh://username@HOST:SSH_PORT/XPRA_PORT
It supposed to be
[MY_DOMAIN_NAME]:SSH_PORT ssh-ed25519 AAAAC3NzaC1SSH_Key_On_Second_Port
MY_DOMAIN_NAME ssh-ed25519 AAAAC3NzaC1SSH_Key_On_Second_Port
System Information (please complete the following information):
Additional context
Temp Workaround: use host file to give xpra an individual domain to prevent xpra overwriting ssh key without port.
The text was updated successfully, but these errors were encountered: