summaryrefslogtreecommitdiff
path: root/cmd/podman/system/connection
diff options
context:
space:
mode:
authorCharlie Doern <cdoern@redhat.com>2022-08-23 11:04:54 -0400
committercdoern <cbdoer23@g.holycross.edu>2022-09-26 18:35:01 -0400
commit2e4e1bb97cdd0fbef7ada673fa97f6b4989998eb (patch)
treede2e77c1852b505891c11d4cecfac5a1945abf0d /cmd/podman/system/connection
parent5fc6d95a947bdf0e0bf013ee282c4a0f99b52a5a (diff)
downloadpodman-2e4e1bb97cdd0fbef7ada673fa97f6b4989998eb.tar.gz
podman-2e4e1bb97cdd0fbef7ada673fa97f6b4989998eb.tar.bz2
podman-2e4e1bb97cdd0fbef7ada673fa97f6b4989998eb.zip
podman machine ssh handling
add the key used in newly initialized machines to the user's known_hosts file. This ensures that golang will be able to ssh into the machine using podman-remote. Also, remove the /dev/null redirection for podman machine ssh's known_hosts file. resolves #15347 Signed-off-by: Charlie Doern <cdoern@redhat.com> Signed-off-by: cdoern <cbdoer23@g.holycross.edu>
Diffstat (limited to 'cmd/podman/system/connection')
-rw-r--r--cmd/podman/system/connection/list.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/cmd/podman/system/connection/list.go b/cmd/podman/system/connection/list.go
index 190a68d52..3c1a42453 100644
--- a/cmd/podman/system/connection/list.go
+++ b/cmd/podman/system/connection/list.go
@@ -105,8 +105,9 @@ func inspect(cmd *cobra.Command, args []string) error {
r := namedDestination{
Name: k,
Destination: config.Destination{
- Identity: v.Identity,
- URI: v.URI,
+ Identity: v.Identity,
+ URI: v.URI,
+ IsMachine: v.IsMachine,
},
Default: def,
}