Support per-host SSH port configuration for servers and accessories
Author: activeliangCreated Jul 12, 2025Updated May 11, 2026
Hi team,
I'm trying to deploy to two different servers:
webgoes to VPS1, using default SSH port 22accessories.dbgoes to VPS2, using custom SSH port 10234
My current deploy.yml looks like this:
servers:
web:
hosts:
- xx.xx.xx.xx
accessories:
db:
image: library/postgres:17.4
host: xx.xx.xx.xxBut I don't see a way to specify different SSH ports for each host.
Setting a global ssh.port affects all hosts, which doesn't work in this case.
Question: Does Kamal currently support this kind of setup (different SSH ports per host)? If not, could it be supported in the future?
Thanks!
Source: basecamp/kamal