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>
This commit is contained in:
Michael Chen
2025-12-11 11:47:24 -08:00
committed by GitHub
parent f2923914b7
commit 3f49b284f7

View File

@@ -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
---------------