- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Labels:
-
FortiGate
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @electrovalent ,
Please make sure that you have a route entry to 10.10.10.10 in the root VDOM.
Jerry
Created on ‎03-29-2025 05:16 PM Edited on ‎03-29-2025 05:31 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi dingjerry_FTNT,
Yes i have a route entry.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
