Set SSH Port in Capistrano 3

If you need to change the port used for ssh by capistrano 3, just change the environment config file:


set :stage, :production
server ‘123.456.789.111’, user: ‘deploy’, roles: %w{web app}, port: 8222

A short post, just for my future reference

Leave a Reply

Your email address will not be published. Required fields are marked *