Skip to content

How to use a cert with rsync or sftp

Tom Vaughan edited this page Oct 8, 2013 · 2 revisions

For example, ~/.ssh/config should have an entry like:

Host sftp.example.com
    User tvaughan # This is the username on the **remote host**.
    IdentityFile ~/.ssh/example.pem

and config.rb should have a deploy block like:

activate :deploy do |deploy|
  deploy.method = :sftp
  deploy.host = "sftp.example.com"
  deploy.path = "/srv/www/site"
end