Hi there,
SFTP configuration backup fails if there is an @ in the username, Is this configuration not supported?
execute backup config sftp <file name> <SFTP server> <username@domain.com> <password>
Solved! Go to Solution.
Suggest you open a TAC case sounds like this is something that will need to be fixed in FortiOS.
I'm not sure how you can have an @ in a username. How do you SSH to this server? Use the same user syntax as you would when using SSH. SSH is usually "ssh user@hostname". Hostname is what you put in the <SFTP server> field.
Would you check that if an @ in the username is supported? Unfortunately, I do not have SSH access to the server because it is an cloud file service that offers SFTP access.
See print screen below:
FileZilla can connect without problems, see log:
Status: Connecting to stack.rinobroer.nl...
Response: fzSftp started, protocol_version=11
Command: open "rinobroer@stack.rinobroer.nl@stack.rinobroer.nl" 22
Status: Using username "rinobroer@stack.rinobroer.nl".
Command: Pass: ***************************
Status: Connected to stack.rinobroer.nl
Status: Retrieving directory listing...
Command: pwd
Response: Current directory is: "/"
Status: Directory listing of "/" successful
DOes logging in work if you omit the domain from the user?
I cannot log in with a different username on that particular cloud storage. However, I did test a Synology NAS where I can log in with just a username and it does work properly.
So what happens when you try to connect with FileZilla using just rinobroer (without the @stack.rinobroer.nlas) as the username?
That obviously doesn't work
Status: Connecting to stack.rinobroer.nl...
Response: fzSftp started, protocol_version=11
Command: open "rinobroer@stack.rinobroer.nl" 22
Status: Using username "rinobroer".
Command: Pass: ***************************
Status: Access denied
Error: Authentication failed.
Error: Critical error: Could not connect to server
Well then. To be honest this is the first time I've seen a domain as part of a user login to SSH.
Can you escape the @ symbol with a \ to make it work?
execute backup config sftp <file name> <SFTP server> username\@domain.com <password>
hostname # execute backup config sftp fgt.conf stack.rinobroer.nl username\@stack.rinobroer.nl ********
Please wait...
Connect to sftp server stack.rinobroer.nl ...
Please wait...
Connect to sftp server stack.rinobroer.nl ...
Send config file to sftp server via vdom root failed.
Command fail. Return code -1
Is this the same error message you received previously?
Select Forum Responses to become Knowledge Articles!
Select the “Nominate to Knowledge Base” button to recommend a forum post to become a knowledge article.
User | Count |
---|---|
1740 | |
1108 | |
752 | |
447 | |
240 |
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 2024 Fortinet, Inc. All Rights Reserved.