On 2022-11-16 20:53, Patrick Shanahan wrote:
* Carlos E. R. <robin.listas@telefonica.net> [11-16-22 13:55]:
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
Ah, I forgot /etc/ssh/ssh_config. It is equivalent to ~/.ssh/config, but for all users. -- Cheers / Saludos, Carlos E. R. (from 15.3 x86_64 at Telcontar)