mirror of
https://github.com/containers/podman.git
synced 2025-09-21 03:35:06 +08:00
support non-standard ssh port for remote-client
when using the remote client, users may need to specify a non-standard port for ssh connections. we can do so on the command line and within the remote-client configuration file. Fixes: #3987 Signed-off-by: baude <bbaude@redhat.com>
This commit is contained in:
@ -35,7 +35,7 @@ func (r RemoteRuntime) RemoteEndpoint() (remoteEndpoint *Endpoint, err error) {
|
||||
if len(r.cmd.RemoteUserName) < 1 {
|
||||
return nil, errors.New("you must provide a username when providing a remote host name")
|
||||
}
|
||||
rc := remoteclientconfig.RemoteConnection{r.cmd.RemoteHost, r.cmd.RemoteUserName, false}
|
||||
rc := remoteclientconfig.RemoteConnection{r.cmd.RemoteHost, r.cmd.RemoteUserName, false, r.cmd.Port}
|
||||
remoteEndpoint, err = newBridgeConnection("", &rc, r.cmd.LogLevel)
|
||||
// if the user has a config file with connections in it
|
||||
} else if len(remoteConfigConnections.Connections) > 0 {
|
||||
|
Reference in New Issue
Block a user