From e78138dc853c789569277596cdba1abae7e76177 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B1=88=E8=BD=A9?= Date: Thu, 13 Jul 2023 16:39:48 +0800 Subject: [PATCH] fix(climc): add port for ssh (#17513) --- pkg/mcclient/options/compute/servers.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/mcclient/options/compute/servers.go b/pkg/mcclient/options/compute/servers.go index deb4f038ec..c8a8869ba6 100644 --- a/pkg/mcclient/options/compute/servers.go +++ b/pkg/mcclient/options/compute/servers.go @@ -1263,6 +1263,7 @@ type ServerMakeSshableOptions struct { User string `help:"ssh username for ssh connection" default:"root"` PrivateKey string `help:"ssh privatekey for ssh connection"` Password string `help:"ssh password for ssh connection"` + Port int `help:"ssh port for ssh connection"` } func (opts *ServerMakeSshableOptions) Params() (jsonutils.JSONObject, error) {