mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-01-18 21:46:35 +01:00
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>
This commit is contained in:
parent
ec8fdd3bf8
commit
db6afe387a
1 changed files with 2 additions and 2 deletions
|
@ -63,8 +63,8 @@ (define* (open-ssh-session host #:key user port)
|
|||
|
||||
(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
|
||||
|
|
Loading…
Reference in a new issue