Home IT Linux Windows Database Network Programming Server Mobile  
           
  Home \ Linux \ Linux scp remote file copy     - A drop datafile Oracle bug (Database)

- Java input and output common class Scanner (Programming)

- Nonstandard IMP-00010 error processing one case (Database)

- Git 2.5 increase in the working tree, triangle improved workflow performance (Linux)

- SSL VPN SSL VPN access to security websites patron (Linux)

- libnet list of functions (Programming)

- CentOS 6.5 minimal installation and configuration VMware tools (Linux)

- Swift rewrite initialize method of navigation controller class (Programming)

- How to install PlayOnLinux 4.2.5 under Ubuntu 14.04 / 12.04 (Linux)

- MySQL Server Time Synchronization Problem (Database)

- CentOS install video converter FFmpeg and cutting tools segmenter (Linux)

- To install PostgreSQL 9.4 (Database)

- MongoDB query timeout exception SocketTimeoutException (Database)

- How to install Ubuntu California - the calendar application (Linux)

- Ubuntu 14.04 compile, install, configure, the latest development version GoldenDict (Linux)

- Linux System Getting Started Learning: the curl set custom HTTP header (Linux)

- Safe learning through self-extracting package to achieve invasion (Linux)

- Use MD5 transform algorithm to prevent exhaustive decipher passwords (Linux)

- MySQL 5.6 Open full query log (Database)

- Ubuntu 14.04 LTS compiler installation R Source Code (Linux)

 
         
  Linux scp remote file copy
     
  Add Date : 2018-11-21      
         
       
         
  First, make sure that two machines can ping each other direct IP

Then use the SCP command from the first host to the second host to copy files

scp src abctest@192.168.8.144: / home / abctest / mydisk / buffer_scp_file

ssh: connect to host 192.168.8.144 port 22: Connection refused

lost connection

Check the remote host is not installed sshd

abctest @ abctest-VirtualBox: ~ / mydisk / buffer_scp_file $ sshd

Program "sshd" is not installed. You can use the following command to install:

sudo apt-get install openssh-server

abctest @ abctest-VirtualBox: ~ / mydisk / buffer_scp_file $ sudo apt-get install openssh-server

After completing the installation start the file transfer, where I is the transmission folder to folder files are transferred in the past, so use the -r option, without this option, then only transfer files

[Root @ localhost / mydisk / eclispe_workspace / java] # scp -r src abctest@192.168.8.144: / home / abctest / mydisk / buffer_scp_file
abctest@192.168.8.144's password:
logintest.txt 100% 977 1.0KB / s 00:00
ClassLoaderTest.java 100% 80 0.1KB / s 00:00
Test.java 100% 298 0.3KB / s 00:00
FileReadWriteByMemcached.java 100% 139 0.1KB / s 00:00
Client.java 100% 981 1.0KB / s 00:00
ObjectAnalyzer.java 100% 3738 3.7KB / s 00:00
Utils.java 100% 5703 5.6KB / s 00:00
TestQuick.java 100% 1481 1.5KB / s 00:00
TestAndPassportValidate.java 100% 1348 1.3KB / s 00:00
UtilsTest.java 100% 283 0.3KB / s 00:00
Test.java 100% 225 0.2KB / s 00:00
TransferRunnable.java 100% 614 0.6KB / s 00:00
Bank.java 100% 1041 1.0KB / s 00:00
UnSyncBankTest.java 100% 468 0.5KB / s 00:00
Test.java 100% 124 0.1KB / s 00:00
RSAUtils.java 100% 7691 7.5KB / s 00:00
RSATest.java 100% 1980 1.9KB / s 00:00
Base64Utils.java 100% 1924 1.9KB / s 00:00
Test.java 100% 2727 2.7KB / s 00:00
[Root @ localhost / mydisk / eclispe_workspace / java] #

To the remote host to view the corresponding directory

abctest @ abctest-VirtualBox: ~ / mydisk / buffer_scp_file $ ls
src
abctest @ abctest-VirtualBox: ~ / mydisk / buffer_scp_file $ cd src /
abctest @ abctest-VirtualBox: ~ / mydisk / buffer_scp_file / src $ ls
classloader jvm memcached rsa thread
demo logintest.txt reflect safedemo
abctest @ abctest-VirtualBox: ~ / mydisk / buffer_scp_file / src $

These are native to transfer files to a remote host, try again the following copy files from the remote host to the machine

[Root @ localhost / mydisk / eclispe_workspace / java] # scp abctest@192.168.8.144: /home/abctest/mydisk/buffer_scp_file/demo.txt / mydisk /
abctest@192.168.8.144's password:
demo.txt 100% 14 0.0KB / s 00:00
[Root @ localhost / mydisk / eclispe_workspace / java] #

Native to view the catalog


[Root @ localhost / mydisk] # ls
demo.txt Hadoop local_repo normandy_config software
eclispe_workspace learning_material maven_repo service
[Root @ localhost / mydisk] #

Very practical, very simple command!
     
         
       
         
  More:      
 
- Ubuntu will be written in a command file, executable file, source command (Linux)
- Nginx Beginner Guide (Server)
- Let Markdown code syntax highlighting and support Django1.6 (Linux)
- Kubernetes (k8s) environment to build combat (Server)
- Oracle DataGuard principles and basic configuration (Database)
- How to upgrade to Ubuntu 14.04 Ubuntu 14.10 (Linux)
- Java static internal class (Programming)
- C ++ containers (Programming)
- Linux security settings Basics (Linux)
- 7 JavaScript interview questions (Programming)
- To install Scribus 1.4.4 under ubuntu (Linux)
- How to upgrade to Oracle 11g Oracle 12c (Database)
- Ten best plug surge Emacs Productivity (Linux)
- Android Touch message passing mechanism analysis (Programming)
- Actual SSH port forwarding (Linux)
- Python context managers (Programming)
- Linux LVM - File system extension (Linux)
- How to use Quagga BGP (Border Gateway Protocol) router to filter BGP routing (Linux)
- Linux, Oracle listen address modification (Database)
- Linux Crontab Timing task command Detailed (Linux)
     
           
     
  CopyRight 2002-2016 newfreesoft.com, All Rights Reserved.