On Fri, Apr 21, 2023 at 2:16 PM Patrick Shanahan <paka@opensuse.org> wrote:
* Andrei Borzenkov <arvidjaar@gmail.com> [04-21-23 02:57]:
On Fri, Apr 21, 2023 at 5:08 AM Patrick Shanahan <paka@opensuse.org> wrote:
I change ssh port 22 to a high port on all my installs but have one box that respects the assignment for root but not for <user>. I change both ssh.config and sshd.config so that including the port assignment is not normally required (within local network).
errant machine respects the port assignment for rute but uses port 22 for <user>. What have I missed?
You could start with explaining what "machine uses port 22 for <user>" means. You probably did something that you describe in this way but you forgot to tell what you did.
attempting to ssh to my server from remote using ssh -XC <user>@<my.server> fails and (-vvv) show no access to port 22
ssh -XC <root>@<my.server> succeeds using high port
So provide full output of "ssh -vvv ..." in both cases. Are those two commands run from the same user session on the same host?
ssh -XCp<high-port> <user>@<my.server> also succeeds
This would be helpful for comparison.
other boxes with same ssh config(s) work w/o specifying ssh port
ssh involves two sides - client and server. It is absolutely unclear what "other boxes" refers to.