* Carlos E. R.
On 2022-11-16 15:48, Patrick Shanahan wrote:
I have a converted to Tw laptop and have moved ssh to a high port which <root> honors but <user> does not, ie: ssh <user>@box1 ssh: connect to host box1 port 22: Connection refused as root: ssh <user>@box1 success I changed the firewall ports for ssh to the utilized high port I altered both ssh_config and sshd_config to designate the high port. restarted firewalld and sshd
what have I missed?
You have to tell the client to also use that port:
ssh -p high_port_number <user>@box1
Or you can edit ~/.ssh/config at the client:
none of my local boxes have a ~/.ssh/config but all previously utilized high_port rather than port 22 merely by editing /etc/ssh/sshd_config and /etc/ssh/ssh_config
Host box1 Port high_port_number
It is also possible to "route" the high port to port 22 at the firewall of the client machine. This is an easy functionality on home routers supplied by the ISP or purchased, but you have not mentioned using internet.
I have not routed any port, but have opened the high_port in the router firewall.
I think you have done all that, but just writing it out so that you can double check :-)
I find ssh error messages confusing.
some are to me also
-- Cheers / Saludos,
Carlos E. R. (from 15.3 x86_64 at Telcontar)
fwiw: if, if, memory serves, I have not had to specify port after editing ssh_config and sshd_config to designate an alternate port for ssh. and memory is always suspect for me for some years now. -- (paka)Patrick Shanahan Plainfield, Indiana, USA @ptilopteri http://en.opensuse.org openSUSE Community Member facebook/ptilopteri Photos: http://wahoo.no-ip.org/piwigo paka @ IRCnet oftc