From 3f49b284f700b29d1d4fa15706b4ebede500fb73 Mon Sep 17 00:00:00 2001 From: Michael Chen <4326639+mcgitty@users.noreply.github.com> Date: Thu, 11 Dec 2025 11:47:24 -0800 Subject: [PATCH 1/2] Update podman-for-windows.md Remedy for "ssh: rejected" error commonly seen in corporate PC with reduced permissions. Signed-off-by: Michael Chen <4326639+mcgitty@users.noreply.github.com> --- docs/tutorials/podman-for-windows.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/docs/tutorials/podman-for-windows.md b/docs/tutorials/podman-for-windows.md index 10d82cfb2a..704af3d85e 100644 --- a/docs/tutorials/podman-for-windows.md +++ b/docs/tutorials/podman-for-windows.md @@ -126,6 +126,23 @@ PS C:\Users\User> podman run ubi8-micro date Thu May 5 21:56:42 UTC 2022 ``` +If you get this error instead: + +``` +Cannot connect to Podman. Please verify your connection to the Linux system using `podman system connection list`, or try `podman machine init` and `podman machine start` to manage a new Linux VM +Error: unable to connect to Podman socket: Get "http://d/v5.7.1/libpod/_ping": ssh: rejected: connect failed (open failed) +``` + +try to recreate the machine in rootful mode like this: + +``` +podman machine stop +podman machine rm +podman machine init --rootful +podman machine start +podman run ubi8-micro date +``` + Port Forwarding --------------- From 309f8c07479e612f96f6aa6a0bca5c820d4457c2 Mon Sep 17 00:00:00 2001 From: Michael Chen <4326639+mcgitty@users.noreply.github.com> Date: Wed, 31 Dec 2025 12:08:09 -0800 Subject: [PATCH 2/2] Use non-destructive 'set --rootful' command Signed-off-by: Michael Chen <4326639+mcgitty@users.noreply.github.com> --- docs/tutorials/podman-for-windows.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/docs/tutorials/podman-for-windows.md b/docs/tutorials/podman-for-windows.md index 704af3d85e..9872815a49 100644 --- a/docs/tutorials/podman-for-windows.md +++ b/docs/tutorials/podman-for-windows.md @@ -133,12 +133,11 @@ Cannot connect to Podman. Please verify your connection to the Linux system usin Error: unable to connect to Podman socket: Get "http://d/v5.7.1/libpod/_ping": ssh: rejected: connect failed (open failed) ``` -try to recreate the machine in rootful mode like this: +try to restart the machine in rootful mode like this: ``` podman machine stop -podman machine rm -podman machine init --rootful +podman machine set --rootful podman machine start podman run ubi8-micro date ```