diff options
author | Mathieu Othacehe <m.othacehe@gmail.com> | 2017-01-25 22:34:33 +0100 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2017-01-26 11:26:24 +0100 |
commit | db6afe387ae74943a0c66c7488be49bd509b51c4 (patch) | |
tree | 22db9336279ca0f26882eda50886d5937195fcaa | |
parent | ec8fdd3bf8e9bc66504aebecbbd19abcc05cfb7c (diff) | |
download | guix-db6afe387ae74943a0c66c7488be49bd509b51c4.tar.gz guix-db6afe387ae74943a0c66c7488be49bd509b51c4.zip |
copy: Use userauth-public-key/auto! for ssh authentification.
* guix/scripts/copy.scm (open-ssh-session): Replace userauth-agent! by
userauth-public-key/auto!. This way, if ssh-agent is not run,
default ssh key (~/.ssh/id_rsa) will be used as a fallback.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
-rw-r--r-- | guix/scripts/copy.scm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/guix/scripts/copy.scm b/guix/scripts/copy.scm index 9ae204e6c6..624ef73e96 100644 --- a/guix/scripts/copy.scm +++ b/guix/scripts/copy.scm @@ -63,8 +63,8 @@ Throw an error on failure." (match (connect! session) ('ok - ;; Let the SSH agent authenticate us to the server. - (match (userauth-agent! session) + ;; Use public key authentication, via the SSH agent if it's available. + (match (userauth-public-key/auto! session) ('success session) (x |