virtual sftp users with openssh

Posted on

virtual sftp users with openssh – Managing your servers can streamline the performance of your team by allowing them to complete complex tasks faster. Plus, it can enable them to detect problems early on before they get out of hand and compromise your business. As a result, the risk of experiencing operational setbacks is drastically lower.

But the only way to make the most of your server management is to perform it correctly. And to help you do so, this article will share nine tips on improving your server management and fix some problem about linux, centos, ssh, sftp, .

Is it possible to setup a SFTP service with OpenSSH with the use of virtual users (not /etc/passwd)? I’m aware of all the chroot/jail capabilities of OpenSSH. I also read somewhere that the PAM service name is based on sshd argv[0].

The background is, that this service would be run in a failover cluster and I don’t like the idea of having to maintain users in each nodes /etc/passwd file. Therefore I would like to run an sshd with it’s own configuration and with a independent account management.

E.g. in vsftpd virtual users can be written into a BDB file which is then passed to pam_userdb.so.

Is something like this possible with standard PAM/OpenSSH?

Solution :

Have you considered managing your user accounts with ldap, nis, or a configuration management system instead of maintaining the accounts locally on the cluster nodes?

Do you only require sftp, and not shell access? I see that proftpd now has an sftp module, and it supports an external account database.

Leave a Reply

Your email address will not be published. Required fields are marked *