0
1
I'm logged into remote unix server and want to transfer file to sFTP. Issue is that entered passphrase is not accepted and constantly re-prompted.
This is my setting of folder and RSA file permissions
.ssh directory permissions: drwx------ 2 USER USER 131 Aug 29 11:17 .ssh
.ssh files permission: -rw------- 1 USER USER 1.5K Aug 29 11:17 user_priv.ppk
Code is executed from different folder on the same machine
scp -i /home/user/.ssh/user_priv.ppk file.csv
sftp_user@xx.xx.xxx.xx:~/folder/folder
Once entered passphrase I get a notification:
'Enter passphrase for Key /home/user/.ssh/user_priv.ppk'
Once I get my password reset I will load and test my 'Export openSSh key' which I made in PuTTY :) – marcin2x4 – 2019-08-29T13:00:36.737
First thing I did was generate public+private pair of keys and sending public to sFTP. Can I convert private ppk to OpenSSH and use it in my script? Will that work with current public key? – marcin2x4 – 2019-08-29T13:14:21.453
Yes. Like I said in my answer, you can use the putty tool (putty-keygen) to export the putty key in an OpenSSH format. – Kenster – 2019-08-29T13:40:34.083