Hi All,
I'm trying to implement passwordless login to automate file transfers. The source system I'm connecting from is a Windows 7 box. The destination system I'm connecting to is a Ubuntu Server 13.10 w/ proftpd. I've used PuTTYGen to create a pub/priv key set, then converted the public key into RFC 4716 format as required by ProFTPD by using
**ssh-keygen -e -f ~/.ssh/id_dsa > ~/.ssh/id_dsa_com.pub**
I then placed this key into /home/myusername/.sftp/authorized_keys, and chmod 0600 the authorized_keys file.
Here are the relevant config lines from proftpd.conf.
# Configure both the RSA and DSA host keys, using the same host key # files that OpenSSH uses. SFTPHostKey /etc/ssh/ssh_host_rsa_key SFTPHostKey /etc/ssh/ssh_host_dsa_key # Configure the file used for comparing authorized public keys of users. SFTPAuthorizedUserKeys file:~/.sftp/authorized_keys SFTPAuthMethods publickey password
So what is happening is after I put my private key into WinSCP on my windows workstation and connecting to my server running proftpd, I'm still being prompted for my user account password.
Any ideas why this may be the case? Looking at the log, its as if the proftp server isn't even trying the key based auth. There are no errors relating to incorrect keys at all!
[link][5 comments]