Skip to content

Instantly share code, notes, and snippets.

@craigmdennis
Last active August 29, 2015 14:06
Show Gist options
  • Save craigmdennis/5de2cd03763d0f62264d to your computer and use it in GitHub Desktop.
Save craigmdennis/5de2cd03763d0f62264d to your computer and use it in GitHub Desktop.
Setting up capistrano and ssh access on new server

Setting up capistrano and ssh access on new server

When getting an error 'git-ssh.sh': Permission denied add set :tmp_dir, "/home/{username}/tmp" to the deploy.rb file.

1. Copy local ssh public key to clipboard

'pbcopy < ~/.ssh/id_rsa.pub'

2. Add clpboard contents to authorized_hosts

vim authorized_hosts

3. Set up ssh public / private key pair on the server

ssh-keygen

4. Copy ssh public key to authosized hosts

ssh-copy-id {{server ip or name}} Enter password to confirm

5. Copy ssh public key to Bitbucket

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment