Home IT Linux Windows Database Network Programming Server Mobile  
           
  Home \ Linux \ Linux scp remote file copy     - Using IE can also be easily remotely control the computer (Linux)

- MySQL uses mysqld_multi to deploy stand-alone multi-instance detail procedures (Database)

- A brief description of Java 8 new features introduced syntax (Programming)

- How to adjust the system time CentOS (Linux)

- CoreCLR compiled in Linux CentOS (Linux)

- Linux Network Programming - raw socket Example: sending a UDP packet (Programming)

- Use 3G wireless network card under Linux (Linux)

- About MongoDB query method according to fuzzy field (Database)

- Confrontation dragged Library - Web front-end encryption slow (Linux)

- Linux startup and logon security settings (Linux)

- MySQL binlog group to submit XA (two-phase commit) (Database)

- C language to view various types of data size (Programming)

- Linux kernel panic (because glibc result) Repair (Linux)

- Linux user opens a number of adjustment processes (Linux)

- C / C ++ various data types Conversion Summary (Programming)

- Some problems and countermeasures Linux system calls exist (Linux)

- Apple Mac computer to install Windows 10 Concise Guide (Linux)

- MySQL Slave synchronization problem solving (Database)

- Iptables Instructions (Linux)

- Recent Consolidation Using Linux security module (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:      
 
- Use mysqldump MySQL database backup - Linux Shell Scripting (Database)
- Overall Physical Migration of Oracle Database with (Database)
- Linux file and directory management - ls, cp, mv (Linux)
- Linux based serial programming (Programming)
- Without Visual Studio .NET Windows application development (Programming)
- Ubuntu 14.04 Fixed update information is outdated error (Linux)
- The most simple drive to write and test procedures under linux (Programming)
- Which file system is most suitable for your Linux system (Linux)
- Android Get App version number and version name (Programming)
- Memory leak analysis using Android studio (Programming)
- Java regular expressions examples (Programming)
- using Docker Kitematic on windows (Linux)
- MySQL High Availability plan several options (Database)
- Oracle Database asynchronous IO cause slow query response (Database)
- Create your own YUM repository (Linux)
- RabbitMQ tutorial examples: RabbitMQ installation under Windows (Linux)
- extundelete: the Linux-based open source data recovery tools (Linux)
- Memcached installation, configuration and monitoring (Server)
- 10 practical Java programming technology (Programming)
- Linux operating system boot manager -GRUB (Linux)
     
           
     
  CopyRight 2002-2016 newfreesoft.com, All Rights Reserved.