diff --git a/src/croc/croc.go b/src/croc/croc.go index 88a42914..141afb48 100644 --- a/src/croc/croc.go +++ b/src/croc/croc.go @@ -648,7 +648,14 @@ func (c *Client) Send(filesInfo []FileInfo, emptyFoldersToTransfer []FileInfo, t if c.Options.RelayPassword != models.DEFAULT_PASSPHRASE { flags.WriteString("--pass " + c.Options.RelayPassword + " ") } - fmt.Fprintf(os.Stderr, "Code is: %[1]s\nOn the other computer run\n\ncroc %[2]s%[1]s\n", c.Options.SharedSecret, flags.String()) + fmt.Fprintf(os.Stderr, `Code is: %[1]s + +On the other computer run: +(For Windows) + croc %[2]s%[1]s +(For Linux/OSX) + CROC_SECRET=%[1]q croc %[2]s +`, c.Options.SharedSecret, flags.String()) if c.Options.Ask { machid, _ := machineid.ID() fmt.Fprintf(os.Stderr, "\rYour machine ID is '%s'\n", machid)