通过c#代码创建SFTP或FTP用户帐户 [英] Creating SFTP or FTP user account through c# code

查看:151
本文介绍了通过c#代码创建SFTP或FTP用户帐户的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是否可以通过我的代码创建sftp用户?我使用bitvise SSH服务器作为我的sftp服务器,并使用filezilla服务器作为我的ftp服务器,现在我想为不同的客户创建不同的用户,以便他们都可以访问我服务器上的不同文件夹,并且无法访问彼此的路径(文件夹)。
我可以使用其中任何一种(sftp或ftp),但我的优先级是sftp。任何人都可以在sftp或ftp中使用c#代码创建用户创建的一些想法?

Is this possible to create sftp users by my code? I'm using bitvise SSH server as my sftp server, and filezilla server as my ftp server, now I want to create different users for my different customers so that they all would have access of different folders on my server and could not be able to access each others path (folders). I can use either of them (sftp or ftp), but my priority is sftp. Can anyone have some idea of user creation either in sftp or in ftp by c# code?

推荐答案

对于FileZilla服务器,您可以修改 C:\程序文件(x86)\FileZilla Server\FileZilla Server.xml FileZillaServer / Users )并使服务器使用以下命令重新加载配置:

For FileZilla server, you can modify C:\Program Files (x86)\FileZilla Server\FileZilla Server.xml (FileZillaServer/Users) and have the server reload the config using:

"FileZilla Server.exe" /reload-config

这篇关于通过c#代码创建SFTP或FTP用户帐户的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆