parallel_sync icon indicating copy to clipboard operation
parallel_sync copied to clipboard

key with passphrase

Open laszewsk opened this issue 3 years ago • 2 comments

I get the error

paramiko.ssh_exception.PasswordRequiredException: proivate key is encrypted

How do I fix this?

laszewsk avatar Jan 16 '22 14:01 laszewsk

Hi @laszewsk Can you share the code you are running?

kouroshparsa avatar Jan 16 '22 22:01 kouroshparsa

from parallel_sync import rsync

# username and hostname are names that work and tested with 
# ssh [email protected] ls, which works without issue

creds = {'user': 'username',
         'key':'~/.ssh/id_rsa',
         'host':'hostname.edu'}

rsync.upload('fromdir',
             'remotedir',
             creds=creds)

laszewsk avatar Jan 16 '22 22:01 laszewsk