
Security News
Meet Socket at Black Hat Europe and BSides London 2025
Socket is heading to London! Stop by our booth or schedule a meeting to see what we've been working on.
capistrano-ssh-doctor
Advanced tools
This plugin helps you setup and debug ssh-agent forwarding for Capistrano
deployment.
It's created to complement the official capistrano authentication guide.
The following is presumed:
gitssh-agent forwarding strategy for checking out code in
the remote repository (btw. good choice, it's a least hassle)The plugin will report errors (and offer steps to solution) if you deviate from this configuration. The above assumptions should hold true for 98% users.
capistrano-ssh-doctor works only with Capistrano 3+.
The plugin is made for beginners and users that are not sure if their setup is good, so they want to confirm or debug it.
Put the following in your application's Gemfile:
group :development do
gem 'capistrano', '~> 3.2.1'
gem 'capistrano-ssh-doctor'
end
Then run in the console:
$ bundle install
Put the following in Capfile file:
require 'capistrano/ssh_doctor'
This plugin is intended to be used before any deployment task.
In the console run:
$ bundle exec cap production ssh:doctor
A number of checks will be performed and you'll get a report at the end.
In case there are errors in your setup, specific instructions for next steps will be provided in report output.
Important: errors should be tackled in the order of their output. So, if you get errors 2, 5 and 7 in the report, start by solving error 2.
It is very probable that "solving" one or two initial errors will actually make everything work. A lot of the checks are inter-dependent. So don't be discouraged if you see a lot of the errors in the beginning.
Once you solved a problem, run the ssh:doctor task again to see the
progress.
Repeat the process until ssh:doctor task reports success for all the
tasks. You're ok with proceeding with the deployment then.
git as a scmssh-agent process is running locallyssh-add process can communicate with ssh-agentssh-agentforward_agent capistrano option is set to true for all serversssh-agent is actually forwared to all the serversYou'll see the results for all the checks in the output of ssh:doctor
task.
Check out capistrano-plugins github org.
If you got stuck at some point and really can't find a solution, please open a github issue and maybe I can help. Also, your problem can be used to improve this plugin and help others.
FAQs
Unknown package
We found that capistrano-ssh-doctor demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Socket is heading to London! Stop by our booth or schedule a meeting to see what we've been working on.

Security News
OWASP’s 2025 Top 10 introduces Software Supply Chain Failures as a new category, reflecting rising concern over dependency and build system risks.

Research
/Security News
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.