Re: [Proftpd-user] SFTP with virtual users file
"John Stoffel" <[email protected]> Thu, 6 Apr 2023 14:53:29 -0400
| Newsgroups | gmane.network.proftpd.user |
|---|---|
| Message-ID | <[email protected]> |
>>>>> "tach" == tach yon <[email protected]> writes: > I'm trying to set up proftpd to provide SFTP for virtual users on > port 2222, but unfortunately I don't see proftpd binding to port > 2222. I've not been able to find any errors in /var/log/proftpd/ > sftp.log or /var/log/messages. Have you tried running proftpd with the -n flag to see what it says? proftpd -n -c /etc/proftpd.conf or proftpd -n -c /etc/proftpd/proftpd.conf is a good start. And make sure you've got an "Include /etc/proftpd/modules.conf" line in the main .conf file as well. > I was wondering if someone might be able to spot something I'm doing wrong please? > <IfModule mod_sftp_pam.c> > SFTPPAEngine on > SFTPPAMServiceName sftp > </IfModule> > SFTPEngine on > Port 2222 > SFTPLog /var/log/proftpd/sftp.log > # Configure host keys > SFTPHostKey /etc/ssh/ssh_host_rsa_key > SFTPHostKey /etc/ssh/ssh_hostecdsa_key > SFTPAuthMethods password > DefaultRoot ~ > RequireValidShell off > AuthUserFile /usr/local/etc/proftpd/ftpd.passwd > AuthGroupFile /usr/local/etc/proftpd/ftpd.group > AuthOrder mod_auth_file.c > UserReverseDNS off > SFTPCompression delayed What OS are you running this on and how did you install the package? If you compiled it from scratch, did you make sure you have all the needed development files installed for all the modules? If you installed it using a package manager, make sure you installed more than just the core package, make sure you have any extra modules installed. But I can't say for sure. Look for the library, and then also post what you full configuration is. But without comments please! Just the settings you've changed should be all we need. ls /usr/lib/proftpd/mod_sftp* Should show that you have the module located, and the /etc/proftpd/proftpd.conf file should have a a couple of 'Include ...' lines as well. But again, give us more info. John _______________________________________________ ProFTPD Users List <[email protected]> Unsubscribe problems? http://www.proftpd.org/list-unsub.html