Page 1 of 2 12 LastLast
Results 1 to 10 of 18

Thread: SCP Remote Download Error

  1. #1

    Default SCP Remote Download Error

    Sorry to bother. I am remotely connected to a terminal and wish to copy some files from the remote server to a local computer (my laptop). The code I used, with me modifying the actual address for privacy reasons is

    scp username@dragon.us:/disk/home/yforall/simple/plots/N_* /home/me/Desktop/Ham/

    I am then prompted to enter a password, and when I do this correctly, I am given an error message as follows:

    /home/me/Desktop/Ham/: No such file or directory

    The issue is that this directory does exist. I just made it on my desktop, and I can enter this folder locally. Does anyone have any suggestions?

  2. #2
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    32,336
    Blog Entries
    15

    Default Re: SCP Remote Download Error

    Hi
    It's;

    Code:
    scp <local_file> user@host:<already_at_the_user_dir>/directory/<local_file>
    scp *.txt user@host:
    scp simple/plots/N_* username@dragon.us:/home/me/Desktop/Ham/
    scp simple/plots/N_* username@dragon.us:Desktop/Ham/
    Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
    SUSE SLE, openSUSE Leap/Tumbleweed (x86_64) | GNOME DE
    If you find this post helpful and are logged into the web interface,
    please show your appreciation and click on the star below... Thanks!

  3. #3

    Default Re: SCP Remote Download Error

    Quote Originally Posted by malcolmlewis View Post
    Hi
    It's;

    Code:
    scp <local_file> user@host:<already_at_the_user_dir>/directory/<local_file>
    scp *.txt user@host:
    scp simple/plots/N_* username@dragon.us:/home/me/Desktop/Ham/
    scp simple/plots/N_* username@dragon.us:Desktop/Ham/



    Still doesn't work. Tried your code, but this looks like I am taking a local file and copying it to a remote server. I want to copy a file on the remote server and save it to a local folder. I get the same error message, namely that the directory does not exist!

  4. #4
    Join Date
    Jun 2008
    Location
    San Diego, Ca, USA
    Posts
    13,295
    Blog Entries
    2

    Default Re: SCP Remote Download Error

    Maybe try cd to your desired target location and then copy to "here"

    As follows
    Code:
    cd /home/Desktop/Ham/
    scp username@dragon.us:/disk/home/yforall/simple/plots/N_* .
    If that doesn't work, perhaps check the local directory write permissions?

    Also, which Desktop are you running?
    Although I haven't seen on openSUSE in a long time, some Desktops have weird permissions on the Desktop directory, so your creating a sibdirectory on the Desktop might have inherited some weiirdness.
    You can try downloading to subdirectory of Documents or Downloads instead.

    TSU
    Beginner Wiki Quickstart - https://en.opensuse.org/User:Tsu2/Quickstart_Wiki
    Solved a problem recently? Create a wiki page for future personal reference!
    Learn something new?
    Attended a computing event?
    Post and Share!

  5. #5

    Default Re: SCP Remote Download Error

    Quote Originally Posted by tsu2 View Post
    Maybe try cd to your desired target location and then copy to "here"

    As follows
    Code:
    cd /home/Desktop/Ham/
    scp username@dragon.us:/disk/home/yforall/simple/plots/N_* .
    If that doesn't work, perhaps check the local directory write permissions?

    Also, which Desktop are you running?
    Although I haven't seen on openSUSE in a long time, some Desktops have weird permissions on the Desktop directory, so your creating a sibdirectory on the Desktop might have inherited some weiirdness.
    You can try downloading to subdirectory of Documents or Downloads instead.

    TSU


    That code won't even let me complete it because of the fact that scp requires two arguments. Furthermore, I have to be logged into the server I am copying from, as this is a security feature. The issue is the folder not being recognized on my computer, which I find strange. I am running KDE by the way. I had the file originally going to my Documents folder, but that was still an issue! Same error message.

  6. #6
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    32,336
    Blog Entries
    15

    Default Re: SCP Remote Download Error

    Hi
    OK, vis-versa also works fine here... so as user tsu2 indicated, maybe the security in place only allows ssh?

    Code:
    scp user@remotehost:mbpfan-2.0.0-0.x86_64.rpm .
    mbpfan-2.0.0-0.x86_64.rpm                                                                                                            100%   27KB  27.2KB/s   00:00 
    
    scp user@remotehost:mbpfan-2.0.0-0.x86_64.rpm Documents/
    mbpfan-2.0.0-0.x86_64.rpm                                                                                                            100%   27KB  27.2KB/s   00:00
    Localhost openSUSE Leap 42.3 remote host Tumbleweed.

    What OS is the remote host?
    Last edited by malcolmlewis; 10-Nov-2017 at 21:16.
    Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
    SUSE SLE, openSUSE Leap/Tumbleweed (x86_64) | GNOME DE
    If you find this post helpful and are logged into the web interface,
    please show your appreciation and click on the star below... Thanks!

  7. #7
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    32,336
    Blog Entries
    15

    Default Re: SCP Remote Download Error

    Hi
    Another thought, since you can ssh to the remote machine, can you then ssh back to your local machine?
    Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
    SUSE SLE, openSUSE Leap/Tumbleweed (x86_64) | GNOME DE
    If you find this post helpful and are logged into the web interface,
    please show your appreciation and click on the star below... Thanks!

  8. #8
    Join Date
    Jun 2008
    Location
    San Diego, Ca, USA
    Posts
    13,295
    Blog Entries
    2

    Default Re: SCP Remote Download Error

    Quote Originally Posted by morrison27 View Post
    That code won't even let me complete it because of the fact that scp requires two arguments. Furthermore, I have to be logged into the server I am copying from, as this is a security feature. The issue is the folder not being recognized on my computer, which I find strange. I am running KDE by the way. I had the file originally going to my Documents folder, but that was still an issue! Same error message.
    You probably can't see it unless you look <very> closely... There is a space followed by a period.
    So, there <is> a defined target.

    If you copy the <entire line> you'll find that the command is complete syntactically.

    TSU
    Beginner Wiki Quickstart - https://en.opensuse.org/User:Tsu2/Quickstart_Wiki
    Solved a problem recently? Create a wiki page for future personal reference!
    Learn something new?
    Attended a computing event?
    Post and Share!

  9. #9
    Join Date
    Sep 2012
    Posts
    7,101

    Default Re: SCP Remote Download Error

    Quote Originally Posted by morrison27 View Post
    Does anyone have any suggestions?
    copy and paste your actual command and its output (including final shell prompt).

  10. #10

    Default Re: SCP Remote Download Error

    Quote Originally Posted by arvidjaar View Post
    copy and paste your actual command and its output (including final shell prompt).


    The following is the actual output of the code that I feel should work. Only two usernames were changed for security purposes, and they are now 'username' and 'me'. The rest is the verbatim actual output.



    [username@hamilton2 GRAPHS]$ scp username@hamilton.dur.ac.uk:/ddn/home/username/Sinh_gordon/GRAPHS/N_* /home/me/Desktop/Hamilton/
    username@hamilton.dur.ac.uk's password:
    /home/me/Desktop/Hamilton/: No such file or directory
    /home/me/Desktop/Hamilton/: No such file or directory
    /home/me/Desktop/Hamilton/: No such file or directory
    /home/me/Desktop/Hamilton/: No such file or directory
    /home/me/Desktop/Hamilton/: No such file or directory
    /home/me/Desktop/Hamilton/: No such file or directory
    /home/me/Desktop/Hamilton/: No such file or directory
    /home/me/Desktop/Hamilton/: No such file or directory
    /home/me/Desktop/Hamilton/: No such file or directory
    /home/me/Desktop/Hamilton/: No such file or directory
    /home/me/Desktop/Hamilton/: No such file or directory
    /home/me/Desktop/Hamilton/: No such file or directory
    /home/me/Desktop/Hamilton/: No such file or directory
    /home/me/Desktop/Hamilton/: No such file or directory
    /home/me/Desktop/Hamilton/: No such file or directory
    /home/me/Desktop/Hamilton/: No such file or directory
    /home/me/Desktop/Hamilton/: No such file or directory
    /home/me/Desktop/Hamilton/: No such file or directory
    /home/me/Desktop/Hamilton/: No such file or directory
    /home/me/Desktop/Hamilton/: No such file or directory

Page 1 of 2 12 LastLast

Tags for this Thread

Posting Permissions

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