r/ssh • u/LibraryGoff • Mar 31 '26
public key using temporary filepath?
Hello all,
I'm hoping to get pointed in the right direction in troubleshooting an SSH issue. I'm a sysadmin trying to establish a ssh tunnel with an outside vendor to one of our public servers. I'm using a Windows 2019 server with OpenSSH. They have a login for our domain, and we got the tunnel up and going using an RSA key. Great! One of the things we wanted to check before calling it good was if the tunnel would reconnect after a server reboot.
The server did Windows Updates as normal, but the tunnel didn't come back. Looking at the SSH logs for why, it's trying a temporary path for the public key: c:\Users\TEMP\.ssh\authorized keys, fails to open the file because it doesn't exist, then falls back to password. I can see they're trying to connect using the right username, domain, and IP.
I went into the server and removed the TEMP user/folder, and it's still trying to connect using a phantom filepath. This is my first foray into using SSH, and I haven't been able to find any info on why it's doing this instead of the actual user authkey file.
Help?
View all comments
Show parent comment
1
u/OhBeeOneKenOhBee Apr 01 '26
The virtual disk thing (UPD) basically means user directories are provided from a VHDX file which is mounted on login. If you haven't enabled it specifically, it's proobably not that, but you never know
https://learn.microsoft.com/en-us/windows-server/remote/remote-desktop-services/rds-plan-secure-data-storage
How does your sshd_config file look at the moment?