mirror of
https://github.com/psviderski/uncloud.git
synced 2026-08-26 19:13:34 +00:00
fix: disable interactive prompts for ssh connections to not interfere with TUI
This commit is contained in:
@@ -119,6 +119,9 @@ func (c *SSHCLIConnector) buildSSHArgs() []string {
|
||||
|
||||
// Add connection timeout to fail fast when node is down.
|
||||
args = append(args, "-o", "ConnectTimeout=5")
|
||||
// Disable interactive prompts (e.g., passphrase input) to prevent interference with the TUI.
|
||||
// Authentication must succeed non-interactively via SSH agent or unencrypted key.
|
||||
args = append(args, "-o", "BatchMode=yes")
|
||||
// Disable pseudo-terminal allocation to prevent SSH from executing as a login shell.
|
||||
args = append(args, "-T")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user