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

@ -0,0 +1,9 @@
// Copyright (c) 2022 Tailscale Inc & AUTHORS All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package tailssh
func (ia *incubatorArgs) loginArgs() []string {
return []string{ia.loginCmdPath, "-fp", "-h", ia.remoteIP, ia.localUser}
}