我正在尝试通过端口(ssh在端口222上)设置对服务器的访问,但是尽管我在deploy.rb
中
我仍然遇到错误
SSHKit::Runner::ExecuteError: Exception while executing on host IP:
Operation timed out - connect(2) for "IP" port 22
我该如何解决这个错误?我做错了什么?
最佳答案
我也有ssh_options
选项的问题。
我改用server
方法,因此看起来像这样:
# config/deploy/production.rb
server "#{server_ip_here}", user: "deploy", roles: %w{web app db}, port: 222
关于ssh - capistrano 3设置ssh端口,但仍使用22,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/25564935/