Issue Description
podman --version
podman.exe version 5.3.1
I am using remote client following this tutorial.
I used VScode to establish a SSH connection so it added an entry in the config file (C:\Users\UserName.ssh\config) like this:
Host 222.222.222.222
HostName 222.222.222.222
User UserName
After I did all the tutorial said, I tried podman ps:
PS > podman ps
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: failed to connect: dial tcp :22: connectex: No connection could be made because the target machine actively refused it.
This problem was finally worked out as soon as I changed the config file entry as follows:
Host Server
HostName 222.222.222.222
User UserName
It seems that when resolving the URI, the ip string was recongnized as host name.
Steps to reproduce the issue
Steps to reproduce the issue
- follow this tutorial.
- added an entry in the client config file (C:\Users\UserName.ssh\config) like this:
Host 222.222.222.222
HostName 222.222.222.222
User UserName
- run
podman ps at the client host
Describe the results you received
PS > podman ps
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: failed to connect: dial tcp :22: connectex: No connection could be made because the target machine actively refused it.
Describe the results you expected
PS > podman ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
podman info output
PS C:\Users\Nemo> podman info
host:
arch: amd64
buildahVersion: 1.33.7
cgroupControllers:
- cpu
- memory
- pids
cgroupManager: systemd
cgroupVersion: v2
conmon:
package: conmon_2.1.10+ds1-1build2_amd64
path: /usr/bin/conmon
version: 'conmon version 2.1.10, commit: unknown'
cpuUtilization:
idlePercent: 99.87
systemPercent: 0.06
userPercent: 0.08
cpus: 32
databaseBackend: sqlite
distribution:
codename: noble
distribution: ubuntu
version: "24.04"
eventLogger: journald
freeLocks: 2046
hostname: sev-host
idMappings:
gidmap:
- container_id: 0
host_id: 1000
size: 1
- container_id: 1
host_id: 100000
size: 65536
uidmap:
- container_id: 0
host_id: 1000
size: 1
- container_id: 1
host_id: 100000
size: 65536
kernel: 6.8.0-51-generic
linkmode: dynamic
logDriver: journald
memFree: 230112788480
memTotal: 236234702848
networkBackend: netavark
networkBackendInfo:
backend: netavark
dns:
package: aardvark-dns_1.4.0-5_amd64
path: /usr/lib/podman/aardvark-dns
version: aardvark-dns 1.4.0
package: netavark_1.4.0-4_amd64
path: /usr/lib/podman/netavark
version: netavark 1.4.0
ociRuntime:
name: runc
package: runc_1.1.12-0ubuntu3.1_amd64
path: /usr/bin/runc
version: |-
runc version 1.1.12-0ubuntu3.1
spec: 1.0.2-dev
go: go1.22.2
libseccomp: 2.5.5
os: linux
pasta:
executable: /usr/bin/pasta
package: passt_0.0~git20240220.1e6f92b-1_amd64
version: |
pasta unknown version
Copyright Red Hat
GNU General Public License, version 2 or later
<https://www.gnu.org/licenses/old-licenses/gpl-2.0.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
remoteSocket:
exists: true
path: /run/user/1000/podman/podman.sock
rootlessNetworkCmd: ""
security:
apparmorEnabled: false
capabilities: CAP_CHOWN,CAP_DAC_OVERRIDE,CAP_FOWNER,CAP_FSETID,CAP_KILL,CAP_NET_BIND_SERVICE,CAP_SETFCAP,CAP_SETGID,CAP_SETPCAP,CAP_SETUID,CAP_SYS_CHROOT
rootless: true
seccompEnabled: true
seccompProfilePath: /usr/share/containers/seccomp.json
selinuxEnabled: false
serviceIsRemote: true
slirp4netns:
executable: /usr/bin/slirp4netns
package: slirp4netns_1.2.1-1build2_amd64
version: |-
slirp4netns version 1.2.1
commit: 09e31e92fa3d2a1d3ca261adaeb012c8d75a8194
libslirp: 4.7.0
SLIRP_CONFIG_VERSION_MAX: 4
libseccomp: 2.5.5
swapFree: 8589930496
swapTotal: 8589930496
uptime: 3h 14m 47.00s (Approximately 0.12 days)
variant: ""
plugins:
authorization: null
log:
- k8s-file
- none
- passthrough
- journald
network:
- bridge
- macvlan
- ipvlan
volume:
- local
registries: {}
store:
configFile: /home/server/.config/containers/storage.conf
containerStore:
number: 2
paused: 0
running: 1
stopped: 1
graphDriverName: overlay
graphOptions: {}
graphRoot: /home/server/.local/share/containers/storage
graphRootAllocated: 1966736678912
graphRootUsed: 809979752448
graphStatus:
Backing Filesystem: extfs
Native Overlay Diff: "true"
Supports d_type: "true"
Supports shifting: "false"
Supports volatile: "true"
Using metacopy: "false"
imageCopyTmpDir: /var/tmp
imageStore:
number: 2
runRoot: /tmp/containers-user-1000/containers
transientStore: false
volumePath: /home/server/.local/share/containers/storage/volumes
version:
APIVersion: 4.9.3
Built: 0
BuiltTime: Thu Jan 1 00:00:00 1970
GitCommit: ""
GoVersion: go1.22.2
Os: linux
OsArch: linux/amd64
Version: 4.9.3
Podman in a container
No
Privileged Or Rootless
None
Upstream Latest Release
Yes
Additional environment details
Additional environment details
Additional information
Additional information like issue happens only occasionally or issue happens with a particular architecture or on a particular setting
Issue Description
I am using remote client following this tutorial.
I used VScode to establish a SSH connection so it added an entry in the config file (C:\Users\UserName.ssh\config) like this:
After I did all the tutorial said, I tried
podman ps:This problem was finally worked out as soon as I changed the config file entry as follows:
It seems that when resolving the URI, the ip string was recongnized as host name.
Steps to reproduce the issue
Steps to reproduce the issue
podman psat the client hostDescribe the results you received
Describe the results you expected
PS > podman ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMESpodman info output
Podman in a container
No
Privileged Or Rootless
None
Upstream Latest Release
Yes
Additional environment details
Additional environment details
Additional information
Additional information like issue happens only occasionally or issue happens with a particular architecture or on a particular setting