From 20c70bac9ec88d61ead625a300321a7dd2117776 Mon Sep 17 00:00:00 2001 From: Randall Winkhart Date: Tue, 9 Jul 2024 15:26:17 -0400 Subject: [PATCH] Prompt for SSH port before IP (to avoid users responding to the IP prompt with a socket); specify SSH address may be a domain name --- src/cli/init.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cli/init.go b/src/cli/init.go index d5d7b99..b420618 100644 --- a/src/cli/init.go +++ b/src/cli/init.go @@ -34,8 +34,8 @@ func TempInitCli() { // necessary SSH info fmt.Println(AnsiBold + "\nNote:" + backend.AnsiReset + " Only key-based authentication is supported (keys may optionally be passphrase-protected).\nThe remote server must already be in your ~/.ssh/known_hosts file.") sshUser := input("Remote SSH username:") - sshIP := input("Remote SSH IP address:") sshPort := input("Remote SSH port:") + sshIP := input("Remote SSH IP/domain:") sshKey := input("SSH private identity file path:") // TODO implement generator and selector sshKeyProtected := inputBinary("Is the identity file password-protected?")