Yes, tell the daemon and client to listen on another port. Must be done for all nodes on the cluster at the same time (or on setup)
I recommend testing this in a VM or something, if your only access to the host is SSH, locking yourself out may be no fun...
First lets tell the ssh daemon to provide its service on another port:
Open /etc/ssh/sshd_config with your favorite editor and add/change:
Code:
Port 4242 # super unknown and secure port
Now do the exact same for /etc/ssh/ssh_config this is the client config – note the missing 'd'.
This tells the ssh client to use 4242 as default port for all outgoing connections, very important as Proxmox VE needs to be able to connect with a "plain" ssh command.
You could also just add it to /root/.ssh/config so other users would not be affected (relevant for outgoing ssh connections).
finally:
Now the change is active.
To connect to your server you'd use
if you use scp (secure copy) then remember to use a uppercase -P option (hey, would be to easy if the where both the same
), e.g.:
Code:
scp -P 4242 FILE.PATH USER@IP:/copy/to