summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ssh.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/ssh.go b/ssh.go
index 7cffa79..51d7816 100644
--- a/ssh.go
+++ b/ssh.go
@@ -27,10 +27,11 @@ func SSH(hostname string, port int, username string, pass string) *ssh.Session {
keyfile := user.HomeDir + "/.ssh/id_ed25519"
if runtime.GOOS == "windows" {
- if Exists("/cygwin") {
+ if Exists("/cygdrive") {
log.Println("On Windows, but running within cygwin")
keyfile = "/home/wit/.ssh/id_ed25519"
} else {
+ log.Println("On Windows: (but not cygwin)")
keyfile = user.HomeDir + "\\id_ed25519"
}
}