cli(ssh): Use type instead of SubtypeFromId (#2497)

pull/2499/head
Louis Ruch 4 years ago committed by GitHub
parent 2dfa1bb149
commit b31e6a8abc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -59,7 +59,7 @@ func (s *sshFlags) buildArgs(c *Command, port, ip, _ string, creds credentials)
// Might want -t for ssh or -tt but seems fine without it for now...
args = append(args, "-p", port, ip)
switch string(target.SubtypeFromId(c.sessionAuthzData.GetTargetId())) {
switch c.sessionAuthzData.GetType() {
case "tcp":
// SSH detects a host key change when the localhost proxy port changes
// This uses the host ID instead of 'localhost:port'.

Loading…
Cancel
Save