我刚刚试图将ProFTPD设置为SFTP服务器,但是在公钥authentication方面,我正面临一些奇怪的行为。
出于某种原因,proftpd正在对提供给它的每个密钥指纹进行encryption,而不pipe它是否存在于用户的授权密钥文件中,导致我的代理(在这种情况下是keeagent)提示每一个密钥,直到达到用户的密钥。
这看起来与OpenSSH服务器有所不同,后者只接受authorized_keys文件中存在的密钥。
这应该是预期的行为,还是一个错误?
ProFTPD版本1.3.5a
<IfModule mod_sftp.c> SFTPEngine on Port 2222 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 SFTPHostKey /etc/ssh/ssh_host_ecdsa_key SFTPAuthMethods publickey SFTPAuthorizedUserKeys file:~%u/.ssh/sftp_keys # Enable compression SFTPCompression delayed </IfModule>