如何防止Capistrano在部署时显示密码

我最近开始使用Capistrano部署我的rails应用程序,但在我提示输入密码时,我似乎无法弄清楚在部署应用程序时如何不显示我的密码。

我收到以下警告,

Text will be echoed in the clear. Please install the HighLine or Termios libraries to suppress echoed text.

我安装了这两个gem,我的密码仍然以明文forms回显。 任何帮助将不胜感激。

在config / deploy / production.rb中添加它

 set :ssh_options, { keys: %w(/Users/artemadamcov/.ssh/id_rsa), forward_agent: true, auth_methods: %w(publickey password), port: 4321 } 

并在终端输入

 ssh-add ~/.ssh/id_rsa