Hi,
I am trying to connect to sftp via:
execute backup config sftp /mnt/Data1/nas/Fortigate_Backup/%%date%%-backup.conf 10.10.10.10 domain\user <password> encryption-<encryption>
On a FGT80 with v.7.2.11
The error is: Connect to sftp server 10.10.10.10 ...
Send config file to sftp server via vdom root failed.
Command fail. Return code -1.
I can successfully login to sftp from other clients.
Any thoughts? thanks in advance
John
Hi @electrovalent ,
Please make sure that you have a route entry to 10.10.10.10 in the root VDOM.
Created on 03-29-2025 05:16 PM Edited on 03-29-2025 05:31 PM
Hi dingjerry_FTNT,
Yes i have a route entry.
Hi Electrovalent
Try ssh from FGT root VDOM to the server.
exec ssh username@10.10.10.10
Created on 03-29-2025 05:21 PM Edited on 03-29-2025 05:39 PM
Hi AEK,
I can successfully connect using:
exec ssh user@domain.example@10.10.10.10
Also tried to change the command to:
execute backup config sftp /mnt/Data1/nas/Fortigate_Backup/%%date%%-backup.conf 10.10.10.10 user@domain.example <password> encryption-<encryption>
With no success
Hi Elec
It can be related to access rights. So can you try ssh to the same server with the same user and try write some file to the same target folder?
Hi AEK,
Same server, same user, different client can successfully write files.
I did write files from fortigate only by using NAS root user.
I will leave it as it is for the time being.
Hello @electrovalent ,
Please check and perform the steps as in the article to further verify this issue :
Regards,
One last try..
If your password contains special characters please put the password between quotes ot double quotes.
'password' or "password".
User | Count |
---|---|
2546 | |
1354 | |
795 | |
643 | |
455 |
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2025 Fortinet, Inc. All Rights Reserved.