From 1c2e43386bf6eef4f6f51d482b72e6dc50300150 Mon Sep 17 00:00:00 2001 From: Alina Quereilhac Date: Thu, 13 Feb 2014 12:17:25 +0100 Subject: [PATCH] Fix #26 [NEPI] [BUG] SSH identity doesn't expand '~' --- src/nepi/util/sshfuncs.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/nepi/util/sshfuncs.py b/src/nepi/util/sshfuncs.py index 28539419..1df46b99 100644 --- a/src/nepi/util/sshfuncs.py +++ b/src/nepi/util/sshfuncs.py @@ -266,6 +266,7 @@ def rexec(command, host, user, args.append('-p%d' % port) if identity: + identity = os.path.expanduser(identity) args.extend(('-i', identity)) if tty: @@ -398,6 +399,7 @@ def rcopy(source, dest, args.append('-r') if identity: + identity = os.path.expanduser(identity) args.extend(('-i', identity)) if server_key: -- 2.43.0