mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 05:18:07 -05:00
copy: Default to port 22.
Failing to do that, "%p" would be "0" when using "ProxyCommand" in ~/.ssh/config. * guix/scripts/copy.scm (send-to-remote-host): Default to port 22. (retrieve-from-remote-host): Likewise.
This commit is contained in:
parent
d5ec5ed719
commit
cc1dfc202f
1 changed files with 3 additions and 2 deletions
|
@ -75,7 +75,8 @@ (define (send-to-remote-host target opts)
|
|||
|
||||
(and (or (assoc-ref opts 'dry-run?)
|
||||
(build-derivations local drv))
|
||||
(let* ((session (open-ssh-session host #:user user #:port port))
|
||||
(let* ((session (open-ssh-session host #:user user
|
||||
#:port (or port 22)))
|
||||
(sent (send-files local items
|
||||
(connect-to-remote-daemon session)
|
||||
#:recursive? #t)))
|
||||
|
@ -88,7 +89,7 @@ (define (retrieve-from-remote-host source opts)
|
|||
(let*-values (((user host port)
|
||||
(ssh-spec->user+host+port source))
|
||||
((session)
|
||||
(open-ssh-session host #:user user #:port port))
|
||||
(open-ssh-session host #:user user #:port (or port 22)))
|
||||
((remote)
|
||||
(connect-to-remote-daemon session)))
|
||||
(set-build-options-from-command-line local opts)
|
||||
|
|
Loading…
Reference in a new issue