mirror of
https://github.com/rwinkhart/MUTN.git
synced 2026-08-28 12:56:30 -04:00
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
This commit is contained in:
+1
-1
@@ -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?")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user