Hello, Maxim Cournoyer <maxim.courno...@gmail.com> skribis:
> From 942eb8cabef5b7c8b4425c765b6ee2ac9f529ad8 Mon Sep 17 00:00:00 2001 > From: Maxim Cournoyer <maxim.courno...@gmail.com> > 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’.