Commits

Mikhail Korobov committed 841e0af

ssh_add_key works even if it is the first key for user

Comments (0)

Files changed (1)

fab_deploy/system.py

     """ 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)