-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
podman
tries to lookup hostname which is used for ssh connection.
#21113
Comments
Podman doesn't support ssh config at all, it defines "system connections" instead (for e.g. the key) |
@afbjorklund when I don't understand how can I define connection via hop. Usually it calls bastion. |
It would need a new feature, where the command would read and apply the normal ssh configuration. https://github.com/containers/common/tree/main/pkg/ssh You can probably use |
It won't work. Idea of bastion is a single point to access to some protected environment. Usually I have access to it via This is widley used technic to improve security and have one place where user should be disabled on off-boarding. |
I see you're using https://pkg.go.dev/golang.org/x/crypto/ssh at the bottom of this. It defiantly supports that I'm looking for but someone need to rework a bin Right now it expects What do you think? |
@catap adding support for ProxyJump is a bigger feature, than just adding basic user, hostname and port (and key). I was using this library for a quick test: http://github.com/kevinburke/ssh_config but that would not change the ssh. commit b86031b6c848e88ea8077fd804416a27908cb151 (rebased) # This SSH config file can be passed to 'ssh -F'.
Host podman-machine-default
User core
Hostname 127.0.0.1
Port 46529
IdentityFile "/home/anders/.ssh/podman-machine-default"
IdentitiesOnly yes
StrictHostKeyChecking no |
I disagree with you because I believe that it can be implemented with rework only one function Idea of changes is quite simple. Instead of: connection = Connection{URI: _url}
connection.Client = &http.Client{
Transport: &http.Transport{
DialContext: func(ctx context.Context, _, _ string) (net.Conn, error) {
return ssh.DialNet(conn, "unix", _url)
},
}} someone should:
The next changes to make it works is adding and that's it. |
A friendly reminder that this issue had no activity for 30 days. |
Just ping as well... |
@catap Best way to get this fixed would be to open a PR. |
Issue Description
I have a machine which fake name
podman.island.local
which is defined inside~/.ssh/config
. This machine runs podman and I may connect to it:When I add this machine to connection as:
and tries to use it... it fails:
Steps to reproduce the issue
Steps to reproduce the issue
~/ssh/config
Describe the results you received
It fails.
Describe the results you expected
Should work.
podman info output
Podman in a container
No
Privileged Or Rootless
None
Upstream Latest Release
No
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
The text was updated successfully, but these errors were encountered: