If you use the older socket (io.podman) rather than the new podman.sock, you need to use a varlink client too.

For instance by running the same version of the podman-remote client (v1.9.3). The new socket is for podman v2.

/Anders

Den tors 27 aug. 2020 kl 18:40 skrev <thomas.neal@hcl.com>:
I'm guessing the podman node needs to be running podman v2 also?  The yum repos on my RHEL7/8 VMs only have v1 (1.6.4 and 1.9.3) currently.

I adding a connection on my macOS laptop using the following command

podman system connection add tnealrh8 --identity ~/.ssh/foo.pem --socket-path /run/podman/io.podman ssh://root@XX.XX.XX.XX

I specified the socket-path because the default values ('/run/podman/podman.sock' or '/run/user/{uid}/podman/podman.sock) did not exist. But cannot connect.

$ podman images
Error: Failed to create sshClient: Connection to bastion host (ssh://root@XX.XX.XX.XX:22/run/podman/io.podman) failed.: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain