Missing known_hosts file in Windows prevents connection as of 5.3.0 #24616
Labels
5.3
kind/bug
Categorizes issue or PR as related to a bug.
regression
remote
Problem is in podman-remote
windows
issue/bug on Windows
Issue Description
Podman 5.3.0 on Windows throws exception on missing path when run.
Steps to reproduce the issue
Steps to reproduce the issue
podman ps -a
and other commands I would get a connectivity errorpodman ps -a
to work fineDescribe the results you received
Cannot connect to Podman. Please verify your connection to the Linux system using
podman system connection list
, or trypodman machine init
andpodman machine start
to manage a new Linux VMError: unable to connect to Podman socket: open C:\Users{username}.ssh\known_hosts: The system cannot find the path specified.
Describe the results you expected
I expected to see the containers on the machine
podman info output
Podman in a container
No
Privileged Or Rootless
Rootless
Upstream Latest Release
Yes
Additional environment details
PS C:\Users\scott> cmd /c ver
Microsoft Windows [Version 10.0.22631.4460]
PS C:\Users\scott> wsl -l -v
NAME STATE VERSION
podman-machine-default Running 2
PS C:\Users\scott> wsl --version
WSL version: 2.3.26.0
Kernel version: 5.15.167.4-1
WSLg version: 1.0.65
MSRDC version: 1.2.5620
Direct3D version: 1.611.1-81528511
DXCore version: 10.0.26100.1-240331-1435.ge-release
Windows version: 10.0.22631.4460
Additional information
I was able to eventually workaround the issue by adding an empty
C:\Users\{username}\.ssh\known_hosts
file, but given that the file is 0 bytes, it doesn't seem like it's something the podman command should fail on or at least possibly the installer could touch the file to ensure it exists.The text was updated successfully, but these errors were encountered: