mirror of
https://github.com/containers/podman.git
synced 2025-06-23 02:18:13 +08:00
Merge pull request #6988 from jwhonce/wip/connection
Fix `podman system connection` panic
This commit is contained in:
@ -60,7 +60,8 @@ func init() {
|
|||||||
})
|
})
|
||||||
|
|
||||||
flags := connectionCmd.Flags()
|
flags := connectionCmd.Flags()
|
||||||
flags.IntVarP(&cOpts.Port, "port", "p", 22, "port number for destination")
|
flags.IntVarP(&cOpts.Port, "port", "p", 22, "SSH port number for destination")
|
||||||
|
flags.StringVar(&cOpts.Identity, "identity", "", "path to SSH identity file")
|
||||||
flags.StringVar(&cOpts.UDSPath, "socket-path", "", "path to podman socket on remote host. (default '/run/podman/podman.sock' or '/run/user/{uid}/podman/podman.sock)")
|
flags.StringVar(&cOpts.UDSPath, "socket-path", "", "path to podman socket on remote host. (default '/run/podman/podman.sock' or '/run/user/{uid}/podman/podman.sock)")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -15,6 +15,12 @@ The user will be prompted for the remote ssh login password or key file pass phr
|
|||||||
|
|
||||||
## OPTIONS
|
## OPTIONS
|
||||||
|
|
||||||
|
**--identity**=*path*
|
||||||
|
|
||||||
|
Path to ssh identity file. If the identity file has been encrypted, Podman prompts the user for the passphrase.
|
||||||
|
If no identity file is provided and no user is given, Podman defaults to the user running the podman command.
|
||||||
|
Podman prompts for the login password on the remote server.
|
||||||
|
|
||||||
**-p**, **--port**=*port*
|
**-p**, **--port**=*port*
|
||||||
|
|
||||||
Port for ssh destination. The default value is `22`.
|
Port for ssh destination. The default value is `22`.
|
||||||
|
Reference in New Issue
Block a user