Re: [gentoo-user] ssh from linux to Windows
looking for known_hosts2 (and also /etc/ssh/ssh_known_hosts and /etc/ssh/ssh_known_hosts2) also happens on my machines, both a debian install and my gentoo machine, the files not being present does not prevent the ssh connection from working though. So this is probably not the issue. Judging from comments [1] it appears to be an undocumented legacy feature. [1] https://github.com/search?q=repo%3Aopenssh%2Fopenssh-portable+known_hosts2=commits On 08.01.24 01:32, the...@sys-concept.com wrote: On 1/6/24 20:09, the...@sys-concept.com wrote: I installed openssh server on Windows 11 and tried to ssh to it using the id_rsa.pub key but I didn't have luck. I copied the key to .ssh\authorized_keys file. On linux the last line ending with "\" on Windows Notepad replaces it with the "+" sign. ssh with password is working but windows doesn't recognize the public key or maybe it is wrong directory C:\Users\Garry Server\.ssh\authorized_keys Trying to run: "ssh -vv" I get: debug1: Authenticating to 10.0.0.130:22 as 'Glen Server' debug1: load_hostkeys: fopen /home/joseph/.ssh/known_hosts2: No such file or directory Where is it taking the : "known_hosts2" in home directory .ssh/ I only have file "known_hosts" In /etc/ssh/sshd_config (computer ssh is initiated from) I can not find any reference to "known_hosts2" Nor, windows \ProgramData\ssh\sshd_config contain any reference to "known_hosts2" OpenPGP_0x7AAC0ED205503D09.asc Description: OpenPGP public key OpenPGP_signature.asc Description: OpenPGP digital signature
Re: [gentoo-user] Strange behaviour disconnecting and reconnecting USB-C screen
My normal layout #!/bin/sh xrandr --output eDP-1 --mode 1920x1080 --pos 3640x249 --rotate normal --output DP-1 --off --output HDMI-1 --off --output DP-2 --off --output HDMI-2 --off --output DP-1-1 --mode 1920x1080 --pos 0x0 --rotate left --output DP-1-2 --off --output DP-1-2-8 --primary --mode 2560x1600 --pos 1080x46 --rotate normal --output DP-1-2-1 --off --output DP-1-3 --off The layout I switch to to wake the screens up, before then switchign back to the normal layout #!/bin/sh xrandr --output eDP-1 --mode 1920x1080 --pos 3640x498 --rotate normal --output DP-1 --off --output HDMI-1 --off --output DP-2 --off --output HDMI-2 --off --output DP-1-1 --mode 1600x1200 --pos 0x0 --rotate left --output DP-1-2-8 --primary --mode 1920x1600 --pos 1080x46 --rotate normal --output DP-1-2-1 --off --output DP-1-2 --off --output DP-1-3 --off I used arandr to generate the commands and have the assigned to hotkeys On 11.01.22 12:13, Andreas Fink wrote: On Tue, 11 Jan 2022 10:57:28 +0100 Benjamin Blanz wrote: Hi, I have the same issue using a usb-c dockingstation. I have found it is enough to change the resolution of the connected screens to get them back. Still annoying, but at least the windows are not redistributed.On 11.01.22 10:25, Andreas Fink wrote: That did not work for me because xrandr complains that any resolution is an unknown mode. Which command do you use to change the resolution of the connected screen? OpenPGP_0x7AAC0ED205503D09.asc Description: OpenPGP public key OpenPGP_signature Description: OpenPGP digital signature
Re: [gentoo-user] Strange behaviour disconnecting and reconnecting USB-C screen
Hi, I have the same issue using a usb-c dockingstation. I have found it is enough to change the resolution of the connected screens to get them back. Still annoying, but at least the windows are not redistributed.On 11.01.22 10:25, Andreas Fink wrote: Hello, I've got a new laptop and see a strange behaviour when disconnecting and reconnecting my USB-C screen. Here are the steps that I am doing. I have a dual screen setup with xrandr, with my notebook screen being the primary screen and a second large external screen connected via USB-C to my notebook directly. Now I disconnect the USB-C cable and do not do anything software wise, i.e. my X-Server is still pretending to run on two screens, I can move the screen outside of my notebook screen (into the area where the external screen). Now I reconnect the USB-C cable but the screens stays blank (the the screen it says "No USB Type-C connection from your computer"). The only way to get a signal again is to first use xrandr to only use my notebook screen, and at the exact time udev gets a DRM event, and suddently my external monitor appears within xrandr as connected (I did not touch the cable, I only ran an xrandr command to use only the notebook screen). Right after the DRM event I can run the xrandr command to use both screens, but it is annoying to degrade first to one screen, because all windows are moved around and I do not end up with the same window setup as before. Using the same screen with the same experiment as described above but with a different notebook the screen is able to pick up the signal again, so it's not purely a problem with the external screen. Any idea what is going on and how I can workaround it? I just want to disconnect the cable and reconnect it without the need to switch any xrandr setup. Thanks for your ideas and help Andreas OpenPGP_0x7AAC0ED205503D09.asc Description: OpenPGP public key OpenPGP_signature Description: OpenPGP digital signature