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
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
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
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
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
Mac OSX 10.13.3 System under the pro-Test no problem, look directly at the code:#!/bin/Bashlfname=tencentcloud_poc_ljl_0009# here is any bash commandlsprintf"\ n";p rintf"starting SCP $lfname -1.0-2.app.zip....\n";p rintf"\ n"; #这里开始利用 expect
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
Mac and Linux comes with SCP commands, please consider Gitbash or professional Linux tools (default port is 22, so-p does not write) upload file /home/lnmp.gz [email protected]:/usr/local/src/lnmp.gz # After the file name can not be writtenUpload
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.