You can run ossftp on operating systems such as Windows, Linux, and macOS. This topic describes how to install and use ossftp.
Download URL
You can download the installation package of ossftp based on your system environment:
- Windows: ossftp-1.1.0-win.zip
By default, Python 2.7 is not installed on Windows. The installation package includes Python 2.7. You can run ossftp directly after the package is decompressed.
- Linux and macOS: ossftp-1.1.0-linux-mac.zip
By default, Python 2.7 or Python 2.6 is installed on Linux or macOS. The installation package contains only the required dependent libraries.
Procedure
Appendix: Create a custom logon account
Open the config.json file in the installation directory of ossftp. Modify parameters in
After the configuration file is saved, you must restart the ossftp service on the
graphical management interface of ossftp. Otherwise, the configured account does not
take effect.
accounts
. Keep default settings for other parameters. Configuration example:{
"modules":{
"accounts":[
{
// Specify the AccessKey ID and AccessKey secret that have the permissions to access the required bucket.
"access_id":"LTAI4FrfJPUSoKm4JH******",
"access_secret":"Y6IoUOZReouXvWaXuwjvDch9******",
// Specify the name of the bucket.
"bucket_name":"examplebucket",
// Specify the URLs of the objects in the bucket. After the preceding information is specified, the account can access the objects whose URLs are specified. If no URLs are specified, all objects in the bucket can be accessed.
"home_dir":"examplefolder/",
// Customize a password for logons.
"login_password":"password1",
// Customize a username for logons.
"login_username":"user1"
},
{
"access_id":"LTAI4FrfJPUSoKm4JH******",
"access_secret":"Y6IoUOZReouXvWaXuwjvDch9******",
"bucket_name":"examplebucket",
"home_dir":"",
"login_password":"password2",
"login_username":"user2"
}
],
"launcher":{
"auto_start":0,
"control_port":8192,
"language":"cn",
"popup_webui":1,
"show_systray":1
},
"ossftp":{
"address":"127.0.0.1",
"bucket_endpoints":"",
"log_level":"INFO",
"passive_ports_start":51000,
"passive_ports_end":53000,
"port":2048
}
}
}