Support Forum
The Forums are a place to find answers on a range of Fortinet products from peers and product experts.
electrovalent
New Contributor

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

Regards, John
Regards, John
6 REPLIES 6
dingjerry_FTNT

Hi @electrovalent ,

 

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

Regards,

Jerry
electrovalent

Hi dingjerry_FTNT,

 

Yes i have a route entry.

 
Regards, John
Regards, John
AEK
SuperUser
SuperUser

Hi Electrovalent

Try ssh from FGT root VDOM to the server.

exec ssh username@10.10.10.10
AEK
AEK
electrovalent

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

Regards, John
Regards, John
AEK

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?

AEK
AEK
dingjerry_FTNT

Hi @electrovalent ,

 

Can you try using the path "backup.conf" directly?  Just to test.

Regards,

Jerry
Announcements
Check out our Community Chatter Blog! Click here to get involved
Labels
Top Kudoed Authors