Wireless Access

last person joined: 15 hours ago 

Access network design for branch, remote, outdoor, and campus locations with HPE Aruba Networking access points and mobility controllers.
Expand all | Collapse all

SCP path specification format

This thread has been viewed 4 times
  • 1.  SCP path specification format

    Posted Aug 08, 2018 12:20 PM

    Hi I am trying to SCP flash backups off my controllers to an SCP server (Cygwin).  I have done similar in the past and have it working from other unix based devices.  The issue is that the destination path contains spaces. 

     

    The path is more complicated but for the sake of this, I just want to copy the file to:

    C:\Controller Backups\Dated Configs\flashbackup.tar.gz

     

    That would normally result in a scp target of:

    "/cygdrive/c/Controller\ Backups/Dated\ Configs/flashbackup.tar.gz"

     

    But I get an error during the copy:

    Error copying file:
    Data/flashbackup.tar.gz: No such file or directory

     

    Can anyone help with the correct format to escape the spaces?



  • 2.  RE: SCP path specification format
    Best Answer

    MVP EXPERT
    Posted Aug 08, 2018 12:34 PM

    I do not believe this is possible since the controllers do not support specifying a destination folder when using SCP. It will simply copy it to the root folder of the username in question. 

     

    copy flash: flashbackup.tar.gz scp: <scphost> <username> <destfilename>

    You can specify a destination folder when using FTP however.

     

     

    (Aruba620) # copy flash: flashbackup.tar.gz ftp: 1.1.1.1 username ?
    <remote-dir> Enter the remote directory if needed
    <cr>
    
    (Aruba620) # copy flash: flashbackup.tar.gz ftp: 1.1.1.1 username /path/path ?
    <destfilename> Enter the destination file name
    <cr>
    
    (Aruba620) # copy flash: flashbackup.tar.gz ftp: 1.1.1.1 username /path/path filename

     



  • 3.  RE: SCP path specification format

    Posted Aug 09, 2018 04:52 AM

    OK I will see if I have FTP, or may create a user with the right home directory.

     

    Thanks