ssh/tailssh: fix /usr/bin/login args on macOS

Fixes #4931

Signed-off-by: Adam Eijdenberg <adam@continusec.com>
This commit is contained in:
Adam Eijdenberg
2022-06-25 08:23:36 +00:00
committed by Brad Fitzpatrick
parent 35782f891d
commit 7f807fef6c
3 changed files with 14 additions and 1 deletions

View File

@@ -173,3 +173,7 @@ func maybeStartLoginSessionLinux(logf logger.Logf, ia incubatorArgs) (func() err
}
return nil, nil
}
func (ia *incubatorArgs) loginArgs() []string {
return []string{ia.loginCmdPath, "-f", ia.localUser, "-h", ia.remoteIP, "-p"}
}