On Tue, Dec 23, 2014 at 02:52:28PM +0200, Danny wrote: > Hi guys, > > I am trying to setup SFTP (ssh) with ProFTP. > > My /etc/proftpd/conf.d/sftpd.conf looks like this: > > ####################################################################### > <IfModule mod_sftp.c> > SFTPEngine on > Port 7003 > SFTPLog /var/log/proftpd/sftp.log > # 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 > SFTPAuthMethods publickey > SFTPAuthorizedUserKeys file:/etc/proftpd/authorized_keys/%u > SFTPCompression delayed > </IfModule> > ###################################################################### > > I added the following line in /etc/ssh/sshd_config: > > Subsystem sftp /usr/lib/openssh/sftp-server > > I generated a key for each user that will use SFTP located in their > /home/USER/.ssh/ directory > > As you can see, I have setup SFTP to listen on port 7003. > > My question is the following: The users that will connect to the ssh server > uses > FileZilla and mostly from Windows based machines. I copied the "id_rsa" key > files (which was generated on Debian) to the Windows user's "My Documents" > folder on Windows. I also added the (copied) "id_rsa" files to FileZilla. > > However, I get an "Authentication Failed" followed by a "Critical Error:Could > not connect to server" from FileZilla.
Did you put the contents of id_rsa.pub into a file called /home/$USER/.ssh/authorized_keys on the sftp server? -Rob
signature.asc
Description: Digital signature