1. Mikhail Korobov
  2. django-fab-deploy


Mikhail Korobov  committed 841e0af

ssh_add_key works even if it is the first key for user

  • Participants
  • Parent commits b3e2256
  • Branches default

Comments (0)

Files changed (1)

File fab_deploy/system.py

View file
  • Ignore whitespace
     """ Adds a ssh key from passed file to user's authorized_keys on server. """
     with open(os.path.normpath(pub_key_file), 'rt') as f:
         ssh_key = f.read()
+    run('mkdir -p .ssh')
     append('.ssh/authorized_keys', ssh_key)