- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
SFTP configuration backup fails if there is an @ in the username
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.
- Labels:
-
FortiGate
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Suggest you open a TAC case sounds like this is something that will need to be fixed in FortiOS.
Graham
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Graham
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
DOes logging in work if you omit the domain from the user?
Graham
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
So what happens when you try to connect with FileZilla using just rinobroer (without the @stack.rinobroer.nlas) as the username?
Graham
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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>
Graham
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Is this the same error message you received previously?
Graham
