containers / podman

Podman: A tool for managing OCI containers and pods.
https://podman.io
Apache License 2.0
22.53k stars 2.31k forks source link

[macOS] ssh: rejected: connect failed (open failed) #11306

Closed JudeNiroshan closed 2 years ago

JudeNiroshan commented 2 years ago

Podman version: 3.2.3 Environment: macOS Big Sur 11.4

I installed podman using brew install podman. It seems the version it got installed is podman version 3.2.3

I'm on MacOS so I have to spin up a virtual machine and I did it using Vagrant. Here is the vagrant file I used -> https://github.com/RHEcosystemAppEng/temenos-infinity-cib/blob/main/openshift/msSqlServerDatabase/Vagrantfile I can ssh into that VM and run podman commands without any problem.

after running the vagrant up in the location of the above mentioned file in my machine, I tried the below command to let the podman in my laptop to know about my linux VM.

podman system connection add fedora33 ssh://vagrant@127.0.0.1:2222

Then when I try to run podman ps on my host machine(macOS) it gives the below error:

Error: cannot connect to the Podman socket, please verify that Podman REST API service is running: 
Get "http://d/v3.2.3/libpod/_ping": ssh: rejected: connect failed (open failed)

I assume that this problem is happening since podman version 3.2.3. Because one of my colleauges can connect to the linux VM setup with the above mentioned same steps, but he's using podman version 3.2.2. I tried to downgrade my podman version, but it seems podman has only the latest version available on homebrew.

baude commented 2 years ago

what kind of mac are you on? intel or apple silicon

JudeNiroshan commented 2 years ago

@baude I'm using Intel Core i7

baude commented 2 years ago

Latest podman will take care of all this for you ... version 3.3. SHould be in brew shortly @ashley-cui

ashley-cui commented 2 years ago

The brew formula was updated this morning, if you want to reinstall using brew and try this again :)

JudeNiroshan commented 2 years ago

I have just installed the latest podman version in my host machine. podman version 3.3.0. But I face the same error:

Error: cannot connect to the Podman socket, please verify that Podman REST API service is running: 
Get "http://d/v3.3.0/libpod/_ping": ssh: rejected: connect failed (open failed)

I noticed that inside my VM I have podman version podman version 3.2.3 I install podman in my Vagrantfile as follows: yum install -y podman

JudeNiroshan commented 2 years ago

@baude any update?

github-actions[bot] commented 2 years ago

A friendly reminder that this issue had no activity for 30 days.

rhatdan commented 2 years ago

@ashley-cui @baude @jwhonce What is going on with this issue? Is it fixed?

github-actions[bot] commented 2 years ago

A friendly reminder that this issue had no activity for 30 days.

ashley-cui commented 2 years ago

Try using podman machine instead! It should do all this setup for you so you don't have to use vagrant.