[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#33266: guix-copy: Honor the SSH port of a host when defined in ~/.ss
From: |
Ludovic Courtès |
Subject: |
bug#33266: guix-copy: Honor the SSH port of a host when defined in ~/.ssh/config |
Date: |
Tue, 06 Nov 2018 15:12:44 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) |
Hello,
Maxim Cournoyer <address@hidden> skribis:
> From 942eb8cabef5b7c8b4425c765b6ee2ac9f529ad8 Mon Sep 17 00:00:00 2001
> From: Maxim Cournoyer <address@hidden>
> Date: Sun, 4 Nov 2018 23:35:16 -0500
> Subject: [PATCH] Revert "copy: Default to port 22."
>
> This reverts commit cc1dfc202f2fefb6c2eb9467d1fc90a9154550c9. Specifying a
> default port had the undesirable effect of disregarding a port specification
> for a given host in the ~/.ssh/config that would otherwise have been honored
> at the time `open-ssh-session' calls the `session-parse-config!' method.
>
> In any case, `make-session' will default the port value of the created session
> to 22 if left unspecified.
This looks good, and indeed it’s an unintended consequence of commit
cc1dfc202f2fefb6c2eb9467d1fc90a9154550c9.
However, the log of commit cc1dfc had this:
Failing to do that, "%p" would be "0" when using "ProxyCommand"
in ~/.ssh/config.
This is arguably a defect in either Guile-SSH or (more likely) libssh,
and it would be nice to report it.
Would you like to report it upstream?
Thanks,
Ludo’.