[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

SFTP question



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.

1:Do I need to generate different keys on Windows or is it o.k to use the copied
ones from Debian?
2:Do I have to name the copied or generated files the same as the user?
3:Where do I put the key files on Windows?

(I use puTTY to normally connect to my ssh servers, which works fine)

Thank You

Danny


Reply to: