Cisco – ASA FTP Special Character in password issue

ciscocisco-asa

I am trying to copy a show tech from an ASA to a remote server via FTP.
My issue is that the password I am providing has a '@' and it is being interpreted incorrectly by the CLI. I have tried putting a '\@' but the command still fails.

Anyone have any luck with this?

This works

  show tech-support file ftp://username:password@xxx.xxx.xxx.xxx/ASA-SHOW-TECH

This Does not work

  show tech-support file ftp://username:p@ssword@xxx.xxx.xxx.xxx/ASA-SHOW-TECH

Best Answer

The problem here is that the device is interpreting the first @ as the delimiter between the credentials and the FTP server address.

Perhaps configuring the username and password in global-configuration mode and then redirecting the show tech without specifying the credentials would do the trick. Otherwise, and I know this is a wimpy solution, changing the password to not include that one character may be the easiest and perhaps most secure way of working around this issue.