I need a way to programmatically create an SFTP account that allows a user to upload to their own SFTP account.
here is an example scenario, a user comes onto a website and creates an account. then the server creates an SFTP director, username and password, and emails it to the user. then the user can start uploading files. using an sftp client.
question:
here is an example scenario, a user comes onto a website and creates an account. then the server creates an SFTP director, username and password, and emails it to the user. then the user can start uploading files. using an sftp client.
question:
- is there any API in cpanel that can be called to do this? .. if yes, how?
- or is there any C# library or something that runs on the server that can create an SFTP folder and create credentials for the user?