Deploy your Jenkins instance first.
We are going to use password login for automatic deployment, note that it’s not the most secure way, but for simplicity for now.
CHANGE SSH PORT - FOR DESTINATION SERVER
| |
Find out the line #port 22 and uncomment it to change into port ${YOUR_NEW_SSH_PORT}, then reload the sshd service like so:
| |
One more additional step for firewall (ufw in Ubuntu, firewall-cmd in CentOS), but we will refer to tons of materials out there, instead of mentioning it here.