Skip to main content
electrovalent
New Member
Mar 28, 2025 3:13 PM UTC
Question

sftp connection

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

9 replies

dingjerry_FTNT
Staff
Staff
Mar 28, 2025 3:24 PM UTC

Hi @electrovalent ,

 

Please make sure that you have a route entry to 10.10.10.10 in the root VDOM.

Translate
electrovalent
New Member
Mar 30, 2025 12:16 AM UTC

Hi dingjerry_FTNT,

 

Yes i have a route entry.

 
Translate
AEK
SuperUser
SuperUser
Mar 28, 2025 5:57 PM UTC

Hi Electrovalent

Try ssh from FGT root VDOM to the server.

exec ssh username@10.10.10.10
Translate
AEK
electrovalent
New Member
Mar 30, 2025 12:22 AM UTC

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

Translate
AEK
SuperUser
SuperUser
Mar 30, 2025 10:04 AM UTC

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?

Translate
AEK
ametkola
Staff
Staff
Apr 2, 2025 9:43 AM UTC

Hello @electrovalent ,

 

Please check and perform the steps as in the article to further verify this issue :

https://community.fortinet.com/t5/FortiGate/Troubleshooting-Tip-Unable-to-backup-FortiGate-config-to/ta-p/317017

 

Regards,

 

 

Translate
AEK
SuperUser
SuperUser
Apr 2, 2025 10:00 AM UTC

One last try..

If your password contains special characters please put the password between quotes ot double quotes.

'password' or "password".

Translate
AEK
Risk and Resilience in the Age of AI. An OT Thought Leadership Summit for Houston's Critical Infrastructure Leaders. Date: Thursday, December 3, 2026. Time: 8:30 am - 1:30 pm (CT). Location: The Westin Houston, Memorial City | 945 Gessner Road, Houston, TX 77024