Scp implements file transfer between Mac and Linux servers
1. upload files to Linux server on mac
Scp file name username @ Server ip: target pathFor example: scp/Users/test/testFile test@www.bkjia.com:/test/
2. Upload the folder to the Linux
Scp (secure copy) is a secure remote file copy command based on ssh login in linux. The scp command of linux can copy files and directories between linux servers. in windows, you can use winscp for scp file transmission. In mac, scp can be directly
In Windows, I am used to using putty for SSH Login. for Mac, use terminal directly.Common commands for SSH:Use the root account to log on to the server with the specified IP address. Replace the IP address with the IP address of your server.SSH
For example: scp/users/kizaki/desktop/xx.mp4 [email protected]:/usr/fhome/videoThere are 3 common ways to copy files between different Linux:The first is FTP, which is one of the Linux installation FTP Server, so you can use an FTP client program to
1.SSH1.1SSH IntroductionSSH (Secure Shell), developed by network Working group of the IETF, is a security protocol based on the application layer and transport layer.SSH is a protocol that provides security for Telnet sessions and other network
1, Mac upload files to the Linux serverSCP file name User name @ server IP: Destination pathsuch as: scp/users/test/testfile [email protected]:/test/2, Mac Upload folder to the Linux server, compared with the upload file more than the-RScp-r folder
Local console input SSH [email protected] Extranet IP or intranet IP, example: SSH [email protected] This is the user named root user login 192.168.133.196 This address is located in the background. If you are prompted with the following red partial
Requirements: Internal use of their own computer, home need to use another computer, so you want to back up the company's computer files, code to the server, home can be used1 No password use SCP(1) First step: Generate key pair, I use RSA key.
[Root (0) @ sys11 09:20:29/home/work/code_release/Bj] # SCP./release. Sh [email protected]:/users/a2014102/downloadsSSH: connect to host 192.168.161.151 port 22: Connection refusedLost connection
Solution:One possible reason is that becauseSSH
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.