You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In case of a failure during authentication (wrong identifier and/or password), connection failure of the access control list (ACL), or failure of the automatic login from an unauthorized IP, the connection will be systematically terminated with the message **421 Service not available**.
102
102
103
103
104
+
### Usage on Linux
105
+
106
+
To connect to the Dedibackup service, we recommend `lftp` for interactive use and `curl` for automated tasks:
107
+
108
+
#### Recommended tools
109
+
* For interactive connections: Use `lftp`, which offers an interface and flexibility suitable for FTP sessions.
110
+
* For automated scripts: Use `curl` for automation, though some limitations exist with FTP servers that do not support all commands.
111
+
112
+
#### Example of interactive connection with lftp
113
+
114
+
For interactive sessions, use `lftp` with the following command:
115
+
```sh
116
+
apt install lftp # Requirement
117
+
118
+
FTP_HOST="ftp://dedibackup-dc3.online.net"
119
+
FTP_USER="sd-XXXXX"# Replace with your server ID or 'auto' for autologin
120
+
FTP_PASS="your_password"# Leave blank if using autologin
121
+
122
+
# - Connect to FTP server
123
+
# - Upload a file, list files, remove a file
124
+
# - Disconnect from FTP server
125
+
lftp -u "$FTP_USER,$FTP_PASS""$FTP_HOST"<<EOF
126
+
# Change to the specified FTP directory
127
+
cd "/"
128
+
# Upload a file
129
+
put "path_to_your_file.7z"
130
+
# List files in the folder
131
+
ls
132
+
# Remove a file
133
+
rm "file_to_remove.7z"
134
+
bye
135
+
EOF
136
+
```
137
+
<Messagetype="note">
138
+
Passive mode in `lftp` is automatically managed, so manual configuration is usually unnecessary.
139
+
</Message>
140
+
141
+
#### Example of automated connection with curl
142
+
When automating tasks, you can use `curl`, though command limitations may apply:
0 commit comments