In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly explains "how to use SCP commands for network transmission under linux". Interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn "how to use SCP commands for network transmission under linux".
See the content of scp in the morning, because I will use it occasionally. So I tested it on my own machine, and the result was good. The following are the results of my test, which requires you to enter your password in the process of transmission. (of course, you can also enable key authentication so that you don't have to enter your password every time.)
1. Copy the / home/ptubuntu/vsftpd.config on the server to the local / home/ptubuntu file
two。 Copy the local / home/ptubuntu/tt.txt to the server / home/ptubuntu file
3. Different servers have different ports on how to use transport.
Root@ptubuntu:/home/ptubuntu# scp-P 822 ptubuntu@192.168.0.1:/home/ptubuntu/iptables.firewall / home/ptubuntu/ptubuntu@192.168.0.1's password:iptables.firewall 100% 14KB 13.7KB/s 00:00 simplest application example
The simplest applications are as follows:
Scp local user name @ IP address: file name 1 remote user name @ IP address: file name 2
[local user name @ IP address:] you don't have to enter, you may need to enter the password corresponding to the remote user name.
Several parameters that may be useful:
-v has the same meaning as-v in most linux commands and is used to show progress. Can be used to view connections, authentication, or configuration errors.
-C enable compression option.
-P Select the port. Note that-p has been used by rcp.
-4 forcibly use IPV4 address.
-6 forcibly use IPV6 address.
-r copy the directory.
Such as copy local files to remote machines
Scp / etc/lilo.conf my@www.ptubuntu.com:/home/ptubuntu
The local / etc/lilo.conf file will be copy to www.ptubuntu.com, the user's home directory.
At this point, I believe you have a deeper understanding of "how to use SCP commands for network transmission under linux". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.