Results 1 to 3 of 3

Thread: Problem with scp

  1. #1
    Join Date
    Feb 2007
    Beans
    643
    Distro
    Kubuntu 9.04 Jaunty Jackalope

    Problem with scp

    Hi,

    I copied a zip file (to install prestashop) using:
    Code:
    scp prestashop_1.5.4.1.zip administrator@mysite.com:
    It took a while then said it had copied 17M of data. Then the computer hanged for 2 or 3 minutes, before giving me the command prompt again.

    Then I went to the /var/www directory on the server and looked for the file. It was not there.

    What should I do, please?
    The result of the "make" command:
    - Sitting bored in front of a computer
    - Watching abstruse output scrolling upwards too fast to be read
    - And waiting for something to go wrong

  2. #2
    Join Date
    Feb 2007
    Beans
    643
    Distro
    Kubuntu 9.04 Jaunty Jackalope

    Re: Problem with scp

    Ooops, I'm so sorry, it was in ./home/administrator/prestashop_1.5.4.1.zip
    The result of the "make" command:
    - Sitting bored in front of a computer
    - Watching abstruse output scrolling upwards too fast to be read
    - And waiting for something to go wrong

  3. #3
    Join Date
    Jul 2010
    Location
    Michigan, USA
    Beans
    2,136
    Distro
    Ubuntu 18.04 Bionic Beaver

    Re: Problem with scp

    By default, the way you scp'd that zipfile would have put the files in the admin user's home directory (likely /home/administrator) not in /var/www. If you want to have the file go to /var/www you can either ssh in and move the zip file to the appropriate location.
    Code:
    mv /home/administrator/prestashop_1.5.4.1.zip /var/www/
    
    Or, you can scp it over properly like this.
    Code:
    scp prestashop_1.5.4.1.zip administrator@mysite.com:/var/www/
    This requires that the administrator user has the privileges to write to /var/www.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •