Looks like you are trying to copy to a local machine with that command.
An example scp looks more like the command below:
Copy the file «foobar.txt» from the local host to a remote host
$ scp foobar.txt your_username@remotehost.edu:/some/remote/directory
scp «the_file» your_username@the_remote_host:the/path/to/the/directory
to send a directory:
Copy the directory «foo» from the local host to a remote host’s directory «bar»
$ scp -r foo your_username@remotehost.edu:/some/remote/directory/bar
scp -r «the_directory_to_copy» your_username@the_remote_host:the/path/to/the/directory/to/copy/to
and to copy from remote host to local:
Copy the file «foobar.txt» from a remote host to the local host
$ scp your_username@remotehost.edu:foobar.txt /your/local/directory
scp your_username@the_remote_host:the_file /your/local/directory
and to include port number:
Copy the file «foobar.txt» from a remote host with port 8080 to the local host
$ scp -P 8080 your_username@remotehost.edu:foobar.txt /your/local/directory
scp -P port_number your_username@the_remote_host:the_file /your/local/directory
From a windows machine to linux machine using putty
pscp -r <directory_to_copy> username@remotehost:/path/to/directory/on/remote/host
SCP stands for Secure Copy Protocol and it is based on the “Secure Shell” protocol. It provides a method for transferring files between computers. In this transfer, either both the computers can be remote hosts or one computer can be a localhost and the other, a remote host. Quite recently, a lot of users have been getting the “No Such File or Directory” Error while trying to copy files with SCP.

In this article, we will discuss some of the reasons due to which this issue is triggered and also provide viable solutions to fix it completely. Also, we will look into some of the reasons due to which it is triggered. Make sure to follow the guide carefully and accurately to avoid conflict.
What Causes the “No Such File or Directory” Error in SCP?
After receiving numerous reports from multiple users, we decided to investigate the issue and devised a set of solutions to fix it completely. Also, we looked into the reasons due to which it is triggered and listed them as follows.
- Incorrect Command: In some cases, the command that is being used by the user to copy the file might not be correct. You must modify the copy command to fit the current situation in which you are copying. The commands for copying files and a whole directory are different. Also, the command to copy between two computers with different configurations is changed as per the requirements.
- Port Number: It is also possible that the port number for copying files between computers hasn’t been specified. The correct port must be forwarded before trying to copy files between two hosts.
- Incorrect Login: If you are currently logged into the server and are trying to copy the files to a desktop, you might experience this error because the server tries to find the local path within the server. This can be prevented by logging out of the server path.
- File Permissions: In some cases, the permissions of the files that are to be copied might be limited to “Read-Only”. This can prevent the server from accessing the files and from being able to copy them. It is important the Read and Write permissions are provided for the files.
Now that you have a basic understanding of the nature of the problem, we will move on towards the solutions. Make sure to implement these in the specific order in which they are presented to avoid conflict.
Solution 1: Using Correct Commands
You must use the correct command depending upon the configuration of hosts between which you want to transfer the files. For this, we will be listing some of the commands that can be used to transfer files between different host configurations.
To Copy From Local Host to Remote Host
The Localhost is the actual computer to which you have physical access. The Remote Host is the one to which the user doesn’t have any physical access and it is located in a distant server. To transfer files from a Localhost to a Remote Host, you have to use the following command configurations.
$ scp "the_file" your_username@the_remote_host:the/path/to/the/directory
An example to copy a text file named “Alexa.txt” will be as follows.
$ scp Alexa.txt your_username@remotehost.edu:/some/remote/directory
In the same way, you can copy a whole directory in the following way
$ scp -r "the_directory_to_copy" your_username@the_remote_host:the/path/to/the/directory/to/copy/to
An example to copy a directory named “Alexa” would be as follows.
$ scp -r foo your_username@remotehost.edu:/some/remote/directory/bar
To Copy From Remote Host to Local Host
If you wish to copy a file from the Remote Host to a Local Host, the command configurations differ from the original ones. Below are indicated the appropriate commands to copy files between a Remote Host and a Localhost.
To copy a File, use the following command
$ scp your_username@the_remote_host:the_file /your/local/directory
To copy a file named “Alexa.txt“, use the following commands
$ scp your_username@the_remote_host:Alexa.txt /your/local/directory
Solution 2: Identifying Port Number
The Port Number of the remote host must be identified before copying the file to the computer. For that, we will be adding the port number while initiating the copying process.
You can use the following command to copy between computers while indicating the port number.
$ scp -P port_number your_username@the_remote_host:the_file /your/local/directory
This same command can be used to indicate the port number while copying to or from a remote host. You just need to add the “-P (Port number)” after the “$ scp ” portion of the command.
Solution 3: Changing Permissions
The appropriate permissions must be provided to the file while copying them between computers. Therefore, in this step, we will be indicating the process to change a file’s permissions. For that:
- Right–click on the file that you are trying to copy.
- Click on “Properties” and select the “Security” tab.

Clicking on “Properties” - Make sure that all the permissions are provided to the “System” and the “Administrator“.

Clicking on “Allow” for all Permissions
Note: Also, make sure that you don’t log in to the server path while copying the files.
Kevin Arrows
Kevin is a dynamic and self-motivated information technology professional, with a Thorough knowledge of all facets pertaining to network infrastructure design, implementation and administration. Superior record of delivering simultaneous large-scale mission critical projects on time and under budget.
-
MiniTool
-
MiniTool News Center
- No Such File Or Directory In SCP: How To Fix The Error
By Sarah | Follow |
Last Updated November 30, 2020
![]()
Are you familiar with the error — No such file or directory? Probably you will say yes, right? But do you know what does it mean in SCP? If not, you should read the following content carefully since it introduces the causes of No such file or directory error in SCP and the corresponding measures you should take to solve the problem yourself.
You may see the No such file or directory error now and then in different problems. Here in this article, I will mainly talk about the No such file or directory error in Secure Copy Protocol. What triggers this SCP error? How to fix it in different ways without others’ help? All these questions will be answered below.

Please pay much attention to MiniTool Solution since it is professional in storage management and problem solving.
No Such File or Directory in SCP
First of all, I’d like to explain what SCP is. As the acronym of Secure Copy Protocol, the SCP refers to a security file transfer protocol between a local host and a remote host or among different remote hosts. SCP is developed on the basis of Secure Shell (SSH) protocol and used to help people transfer files among different devices. The SCP has many in common with FTP (File Transfer Protocol) except that the former adds security and authentication.
However, a lot of people reported recently that come across SCP no such file or directory error when they are trying to copy files with the program. Noticing this, I decide to list some of the common reasons that cause the SCP error and the corresponding solutions to fix it.
Create Script To Copy Files From One Folder To Another On Win10.
Causes of No Such File or Directory Error
There are mainly 4 reasons that should be responsible for the Secure Copy Protocol — no such file or directory.
- Port number is not specified: the user didn’t specify the certain port number before they copy files between devices. To complete the file copying process successfully, you must forward correct port in advance.
- File permissions settings are not correct: if the permission of a file is set to read-only, it means you can only access the file and look for information you need. You are not allowed to copy or move it unless the Read and Write permissions are offered for the file.
- Login is not correct: the SCP error could occur when you are trying to copy files to certain desktop after you have logged into the server. Why? That’s because the server will try to find the local path within it. In this case, you should log out of the server path to solve the problem.
- Command is not correct: if the command you’re using to copy files between devices is not correct, you will encounter no such file or directory. You should go to modify the command to make it correct. Please remember that the command used to copy a certain file is not the same as that used to copy a whole directory.
How to Fix Secure Copy Protocol Error
* 1: identify the port number correctly.
If you’re not sure about the port number, you should use this command to copy files between devices since it can indicate the port number:
$ scp -P port_number [email protected]_remote_host:the_file /your/local/directory
It can be used to indicate port number when you are trying to copy files to a remote host (or from it).
Note: You should know that the “-P (Port number)” should be added to the command and placed after the “$ scp” portion.
* 2: check and modify permissions.
As said earlier, you must make sure that enough permission is provided to the file you’re copying so as to avoid the Secure Copy Protocol error. So you should do the following things:
- Open File Explorer and navigate to the file you want to copy.
- Right click on the file and choose Properties.
- Uncheck the Read-only option under General tab.
- Click on the Apply button to confirm.
- Shift to the Security tab and check whether all the permissions are provided to the System and Administrator.

How to fix when the File Explorer is not working/responding?
* 3: make sure the command you’re going to use is correct.
Here are some of the most commonly used commands for copying files.
Copy files from local host to remote host:
- $ scp «the_file» [email protected]_remote_host:the/path/to/the/directory (copy a file)
- $ scp name.txt [email protected]:/some/remote/directory (copy a file)
- $ scp -r «the_directory_to_copy» [email protected]_remote_host:the/path/to/the/directory/to/copy/to (copy a whole directory)
- $ scp -r foo [email protected]:/some/remote/directory/bar (copy a whole directory)
Copy files from remote host to local host:
- $ scp [email protected]_remote_host:the_file /your/local/directory
- $ scp [email protected]_remote_host:name.txt /your/local/directory
That’s it. Do you know how to cope with no such file or directory now?
About The Author
Position: Columnist
Sarah has been working as an editor at MiniTool since she graduated from university. Sarah aims at helping users with their computer problems such as disk errors and data loss. She feels a sense of accomplishment to see that users get their issues fixed relying on her articles. Besides, she likes to make friends and listen to music after work.
scp does not require that you SSH to the remote computer in order to make the copy (and this is where you’re currently running into trouble with your command).
scp essentially works in either a push or pull fashion. You can push files/folders from your local PC to a remote. The command syntax for this method is as follows:
scp /folderpath/tofile/file.txt user@remotehost:/folderpath/tocopyfileto/
Which will prompt you for the password of user on remotehost.
You can also pull file/folders from a remote PC to your local PC. The command syntax for this method is as follows:
scp user@remotehost:/folderpath/tofile/file.txt /folderpath/tolocalfolder/
Which will also prompt you for the password to user on remotehost.
The problem you were running into with your command above is that you were using the data pull syntax of the scp command in order to grab a file from a remotehost, but you were also SSH’d into that remotehost while running it.
The correct way to run this command is to run it from your local machine
scp -P 2222 user@remotehost.com:/home4/user/public_html/website.com/folder_1/folder_2/file_to_copy.zip /Users/username/Desktop/
**Note that I removed the superfluous -r from your original command. It’s not something that will throw off an error, but it’s just that it’s not necessary in your case. The -r option of scp is to be used when recursively copying a folder and all its contents. In your case you were just copying a file so it wasn’t necessary.
**I also added the -P 2222 since subsequent comments from you indicated that you needed to use port 2222 instead of standard port 22.
I am trying to copy files from my laptop to a host via ssh command:
roberto@xxxxx1:~$ scp /home/roberto/Metagenoma_MEL_COLS/Mix-MEL_S10_L002_R1_001.fastq.tar.gz roberto@xxxx.xxx.xxx.es:/media/disk7/roberto/
and it shows:
/home/roberto/Metagenoma_MEL_COLS/Mix-MEL_S10_L002_R1_001.fastq.tar.gz: No such file or directory
The output of ls -lsa is:
$ ls -lsa /home/roberto/Metagenoma_MEL_COLS/Mix-MEL_S10_L002_R1_001.fastq.tar.gz
3268104 -rw------- 1 roberto roberto 3346533319 abr 27 07:01 /home/roberto/Metagenoma_MEL_COLS/Mix-MEL_S10_L002_R1_001.fastq.tar.gz
How can I solve it?
![]()
Yaron
12.5k7 gold badges40 silver badges53 bronze badges
asked Apr 27, 2017 at 6:05
![]()
1
You seem to run the scp command from the Server, but you must issue it from your Laptop:
roberto@roberto-VirtualBox:~$ scp /home/roberto/Metagenoma_MEL_COLS/Mix-MEL_S10_L002_R1_001.fastq.tar.gz roberto@xxxx.xxx.xxx.es:/media/disk7/roberto/
instead of
roberto@xxxxx1:~$ scp /home/roberto/Metagenoma_MEL_COLS/Mix-MEL_S10_L002_R1_001.fastq.tar.gz roberto@xxxx.xxx.xxx.es:/media/disk7/roberto/
From the Server you could run the following, but a firewall/router might prevent that.
roberto@xxxxx1:~$ scp roberto@roberto-VirtualBox:/home/roberto/Metagenoma_MEL_COLS/Mix-MEL_S10_L002_R1_001.fastq.tar.gz /media/disk7/roberto/
answered Apr 27, 2017 at 8:22
pLumopLumo
25.4k2 gold badges56 silver badges85 bronze badges
1
Note: the scp command should be used with lowercase (I guess that it is a typo in your question).
The below message:
/home/me/folder/file.tar.gz: No such file or directory
Means that the file you are trying to copy doesn’t exists.
You can verify by running ls -lsa on this file
ls -lsa /home/me/folder/file.tar.gz
If the running ls on the file won’t return a valid information about the file, it means that you had a typo in the filename and or the path
answered Apr 27, 2017 at 6:09
![]()
YaronYaron
12.5k7 gold badges40 silver badges53 bronze badges
5
I’m not entirely sure what you’re doing, but when I try the command you have in your example I get the following:
$ scp /home/saml/projects/Cooks.com - Recipe - Coconut Chicken.mht
root@remotey:"/root/some spaced out file.mht"
scp: ambiguous target
This is because you’re quoting the target path and it also includes backslashes which are escaping the spaces. However when the current shell peels off the double quote, it will also peel off the single backslash, leaving the target path as a bare string with spaces. You need to do one of the following to nest it further, so that the spaces are correctly escaped:
Examples
method #1 — double quote, single quote
$ scp /path/with spaces/file with spaces.txt
user@remotey:"'/home/user/some spaced out file.txt'"
method #2 — single quote, double quote
$ scp /path/with spaces/file with spaces.txt
user@remotey:'"/home/user/some spaced out file.txt"'
method #3 — single quote, backslash
$ scp /path/with spaces/file with spaces.txt
user@remotey:'/home/user/some spaced out file.txt'
method #4 — double quote, backslash
$ scp /path/with spaces/file with spaces.txt
user@remotey:"/home/user/some spaced out file.txt"
method #5 — triple backslashes
$ scp /path/with spaces/file with spaces.txt
user@remotey:/home/user/some\ spaced\ out\ file.txt
Updated January 2023: Stop getting error messages and slow down your system with our optimization tool. Get it now at this link
- Download and install the repair tool here.
- Let it scan your computer.
- The tool will then repair your computer.
Sometimes you may see the error “No such file or directory” with different problems. In this article I will mainly talk about the error “No such file or directory” in the safe copying protocol. What causes this SCP bug? How can it be solved in different ways without any help? The answers to all these questions are given below.

First I want to explain what SCP is. As an acronym for Secure Copy Protocol, SCP stands for a protocol for transferring security files between local and remote hosts or between different remote hosts. SCP was developed based on Secure Shell (SSH) protocol and helps to transfer files between different devices. SCP has much in common with the File Transfer Protocol (FTP) except that the former provides security and authentication.
Recently, however, many people have reported that SCP does not encounter such a file or directory error when trying to copy files using a program. Being aware of this, I decided to list some of the most common causes of an SCP error and the appropriate solutions to fix it.
Fixing the issue
- Make sure you have specified the correct path to the source and destination when transmitting with ascp. It can be especially difficult to provide information about the path to the remote server because there is no navigation on the command line. You can try to use the GUI to find files in the remote directory, or you can ask the server administrator.
In the GUI you can try to update the current folder (exit and return) to see if any files or subfolders have been removed from the server.
- On Unix systems, make sure that you do not try to upload a special file such as a symbolic link or a named channel. You can check the types of files by running ls -l.
An example output for this is the following:
-rw-r – r– 1 aspera 0 12 oct 15:50 notes.txt Notebook.
drwxr-xr-x 4 employees aspera 136 23 November 16:49 Project_Folder
prw-r – r– 1 aspera employee 0 28 sen 16:43 apipe
lrwxr-xr-x 1 Staff aspera 13 November 23 16:49 my_link -> my_fichier
You can specify the file type by the first character of the leftmost column. – points to an ordinary file, and d points to a directory that you can both transfer in the usual way. However, special files such as named channels (p) and symbolic links (l) cannot be transferred and cause these error messages to appear.
January 2023 Update:
You can now prevent PC problems by using this tool, such as protecting you against file loss and malware. Additionally it is a great way to optimize your computer for maximum performance.
The program fixes common errors that might occur on Windows systems with ease — no need for hours of troubleshooting when you have the perfect solution at your fingertips:
- Step 1 : Download PC Repair & Optimizer Tool (Windows 10, 8, 7, XP, Vista – Microsoft Gold Certified).
- Step 2 : Click “Start Scan” to find Windows registry issues that could be causing PC problems.
- Step 3 : Click “Repair All” to fix all issues.

Use the right commands
You must use the right command depending on the configuration of the hosts between which you want to transfer files. To do this we are going to list some commands that you can use to transfer files between different host configurations.
How to copy from a local host to a remote host
The local host is the actual computer that you have physical access to. The remote host is the one the user does not have physical access to and is located on a remote server. To transfer files from the local host to the remote one you need to use the following command configurations.
$ scp “the_file” your_username @ the_remote_host: directory / path / to / to /
Here is an example of a copy of a text file named “Alexa.txt”.
$ scp Alexa.txt [email protected]:/some/remote/directory
In the same way, you can copy the entire directory as follows
$ scp -r “the_directory_to_copy” [email protected]_remote_host:the/path/to/the/directory/to/copy/to
An example of copying a directory named “Alexa” is as follows.
$ scp -r foo [email protected]:/some/remote/directory/bar
How to copy from remote host to local host
When copying a file from a remote host to a local host, command configurations are different from the original ones. Here are the corresponding commands for copying files between the remote host and the local host.
Use the following command to copy a file
$ scp your_user_name @ the_remote_host: the_file / your / local / directory
Use the following commands to copy a file named Alexa.txt.
$ scp your_user_name @ the_remote_host: Alexa.txt / your / local / directory
Expert Tip: This repair tool scans the repositories and replaces corrupt or missing files if none of these methods have worked. It works well in most cases where the problem is due to system corruption. This tool will also optimize your system to maximize performance. It can be downloaded by Clicking Here

CCNA, Web Developer, PC Troubleshooter
I am a computer enthusiast and a practicing IT Professional. I have years of experience behind me in computer programming, hardware troubleshooting and repair. I specialise in Web Development and Database Design. I also have a CCNA certification for Network Design and Troubleshooting.
Post Views: 88
No Such File Directory Scp

Резюме :

Вам знакома ошибка — нет такого файла или каталога? Вы, наверное, скажете «да»? Но знаете ли вы, что это означает в SCP? Если нет, вам следует внимательно прочитать следующий контент, поскольку он описывает причины отсутствия такого файла или ошибки каталога в SCP и соответствующие меры, которые вы должны предпринять, чтобы решить проблему самостоятельно.
Вы можете увидеть Данный файл или каталог отсутствует ошибка то и дело в разных проблемах. В этой статье я в основном расскажу об ошибке Нет такого файла или каталога в протоколе безопасного копирования. Что вызывает эту ошибку SCP? Как исправить по-разному без посторонней помощи? На все эти вопросы мы ответим ниже.

Пожалуйста, обратите внимание на Решение MiniTool поскольку он профессионален в управлении хранением данных и решении проблем.
В SCP нет такого файла или каталога
Прежде всего, я хотел бы объяснить, что такое SCP. В качестве аббревиатуры протокола безопасного копирования SCP относится к протоколу передачи файлов безопасности между локальным и удаленным хостами или между разными удаленными хостами. УПП разработан на основе Безопасная оболочка (SSH) и используется, чтобы помочь людям передавать файлы между разными устройствами. SCP имеет много общего с FTP (протоколом передачи файлов), за исключением того, что первый добавляет безопасность и аутентификацию.
Однако в последнее время многие люди сообщают, что при попытке скопировать файлы с помощью программы SCP не сталкиваются с такой ошибкой файла или каталога. Заметив это, я решил перечислить некоторые из распространенных причин, вызывающих ошибку SCP, и соответствующие решения для ее устранения.
Создайте сценарий для копирования файлов из одной папки в другую на Win10.
Причины отсутствия такого файла или ошибки каталога
В основном есть 4 причины, по которым следует отвечать за протокол безопасного копирования — отсутствие такого файла или каталога.
- Номер порта не указан : пользователь не указывал определенный номер порта перед копированием файлов между устройствами. Для успешного завершения процесса копирования файла необходимо заранее перенаправить правильный порт.
- Неправильные настройки прав доступа к файлам : если для файла установлено разрешение только на чтение, это означает, что вы можете получить доступ только к файлу и искать нужную информацию. Вам не разрешено копировать или перемещать его, если для файла не предложены разрешения на чтение и запись.
- Логин неверный : ошибка SCP может возникнуть, когда вы пытаетесь скопировать файлы на определенный рабочий стол после входа на сервер. Почему? Это потому, что сервер попытается найти в нем локальный путь. В этом случае вы должны выйти из пути к серверу, чтобы решить проблему.
- Команда неверна : если команда, которую вы используете для копирования файлов между устройствами, неверна, вы не обнаружите такого файла или каталога. Вам следует изменить команду, чтобы сделать ее правильной. Помните, что команда, используемая для копирования определенного файла, отличается от команды, используемой для копирования всего каталога.
Как исправить ошибку протокола безопасного копирования
* 1: правильно определите номер порта.
Если вы не уверены в номере порта, вам следует использовать эту команду для копирования файлов между устройствами, поскольку она может указывать номер порта:
$ scp -P номер_порта Нас _remote_host: файл_файла / ваш / локальный / каталог
Его можно использовать для указания номера порта, когда вы пытаетесь скопировать файлы на удаленный хост (или с него).
Заметка: Вы должны знать, что «-P (номер порта)» следует добавить к команде и поместить после части «$ scp».
* 2: проверить и изменить разрешения.
Как было сказано ранее, вы должны убедиться, что для файла, который вы копируете, предоставлено достаточно разрешений, чтобы избежать ошибки протокола безопасного копирования. Итак, вам следует сделать следующее:
- открыто Проводник и перейдите к файлу, который хотите скопировать.
- Щелкните правой кнопкой мыши файл и выберите Свойства .
- Снимите флажок Только чтение на вкладке Общие.
- Нажми на Применять кнопку для подтверждения.
- Перейти к Безопасность и проверьте, все ли разрешения предоставлены Система и Администратор .

Как исправить, когда проводник не работает / не отвечает?
* 3: убедитесь, что команда, которую вы собираетесь использовать, верна.
Вот некоторые из наиболее часто используемых команд для копирования файлов.
Скопируйте файлы с локального хоста на удаленный хост:
- $ scp ‘the_file’ [электронная почта защищена] _remote_host: / путь / к / каталогу / (скопировать файл)
- $ scp name.txt [электронная почта защищена] : / some / remote / directory (скопировать файл)
- $ scp -r ‘каталог_то_копии’ [электронная почта защищена] _remote_host: / путь / к / каталогу / в / копировать / в (копировать весь каталог)
- $ scp -r foo [электронная почта защищена] : / some / remote / directory / bar (скопировать весь каталог)
Скопируйте файлы с удаленного хоста на локальный:
- $ scp [электронная почта защищена] _remote_host: файл_файла / ваш / локальный / каталог
- $ scp [электронная почта защищена] _remote_host: name.txt / ваш / локальный / каталог
Это оно. Вы знаете, как теперь справиться с отсутствием такого файла или каталога?
Я пытаюсь скопировать файлы с моего ноутбука на хост с помощью команды ssh:
roberto@xxxxx1:~$ scp /home/roberto/Metagenoma_MEL_COLS/Mix-MEL_S10_L002_R1_001.fastq.tar.gz roberto@xxxx.xxx.xxx.es:/media/disk7/roberto/
, и он показывает:
/home/roberto/Metagenoma_MEL_COLS/Mix-MEL_S10_L002_R1_001.fastq.tar.gz: No such file or directory
Вывод ls -lsa is:
$ ls -lsa /home/roberto/Metagenoma_MEL_COLS/Mix-MEL_S10_L002_R1_001.fastq.tar.gz
3268104 -rw------- 1 roberto roberto 3346533319 abr 27 07:01 /home/roberto/Metagenoma_MEL_COLS/Mix-MEL_S10_L002_R1_001.fastq.tar.gz
Как я могу его решить?
задан
27 April 2017 в 11:22
поделиться
4 ответа
Кажется, вы запускаете команду scp с сервера, но вы должны выпустить ее со своего ноутбука:
roberto@roberto-VirtualBox:~$ scp /home/roberto/Metagenoma_MEL_COLS/Mix-MEL_S10_L002_R1_001.fastq.tar.gz roberto@xxxx.xxx.xxx.es:/media/disk7/roberto/
вместо
roberto@xxxxx1:~$ scp /home/roberto/Metagenoma_MEL_COLS/Mix-MEL_S10_L002_R1_001.fastq.tar.gz roberto@xxxx.xxx.xxx.es:/media/disk7/roberto/
с сервера вы можете запустить следующее, но брандмауэр / маршрутизатор может помешать этому.
roberto@xxxxx1:~$ scp roberto@roberto-VirtualBox:/home/roberto/Metagenoma_MEL_COLS/Mix-MEL_S10_L002_R1_001.fastq.tar.gz /media/disk7/roberto/
ответ дан RoVo
18 July 2018 в 14:11
поделиться
Примечание: команда scp должна использоваться с нижним регистром (я предполагаю, что это опечатка в вашем вопросе).
Нижеприведенное сообщение:
/ home / me /folder/file.tar.gz: Нет такого файла или каталога
Означает, что файл, который вы пытаетесь скопировать, не существует.
Вы можете проверить, выполнив ls -lsa в этом файле
ls -lsa /home/me/folder/file.tar.gz
Если работа ls в файле не вернет действительную информацию о файле, это означает, что у вас была опечатка в имени файла и / или путь
ответ дан Yaron
18 July 2018 в 14:11
поделиться
Кажется, вы запускаете команду scp с сервера, но вы должны выпустить ее со своего ноутбука:
roberto@roberto-VirtualBox:~$ scp /home/roberto/Metagenoma_MEL_COLS/Mix-MEL_S10_L002_R1_001.fastq.tar.gz roberto@xxxx.xxx.xxx.es:/media/disk7/roberto/
вместо
roberto@xxxxx1:~$ scp /home/roberto/Metagenoma_MEL_COLS/Mix-MEL_S10_L002_R1_001.fastq.tar.gz roberto@xxxx.xxx.xxx.es:/media/disk7/roberto/
с сервера вы можете запустить следующее, но брандмауэр / маршрутизатор может помешать этому.
roberto@xxxxx1:~$ scp roberto@roberto-VirtualBox:/home/roberto/Metagenoma_MEL_COLS/Mix-MEL_S10_L002_R1_001.fastq.tar.gz /media/disk7/roberto/
ответ дан RoVo
24 July 2018 в 20:20
поделиться
Примечание: команда scp должна использоваться с нижним регистром (я предполагаю, что это опечатка в вашем вопросе).
Нижеприведенное сообщение:
/ home / me /folder/file.tar.gz: Нет такого файла или каталога
Означает, что файл, который вы пытаетесь скопировать, не существует.
Вы можете проверить, выполнив ls -lsa в этом файле
ls -lsa /home/me/folder/file.tar.gz
Если работа ls в файле не вернет действительную информацию о файле, это означает, что у вас была опечатка в имени файла и / или путь
ответ дан Yaron
24 July 2018 в 20:20
поделиться