I have an SFTP server on CentOS 7. On this server, I run 2 OpenSSH processes with different configuration.
- one is standard SSH on port 22 for administration purpose
- the other is only SFTP on port 10022 (config has the line
ForceCommand internal-sftp)
Now, for additional security, I want to split the authentication system as well. SSH on port 22 should stay the same and authenticate local system users, while SFTP on port 10022 should use a remote freeradius server.
How can I configure the OpenSSH process running on port 10022 to use another PAM configuration?