Scp
Help command: Man SCP
If you want to upload or want to download the directory, the best way is to use the tar compression, is the most sensible choice.Downloading things from a remote host to the local computer
Copy File command
SCP User@host:/path/file/localpath//SCP user name @ip:/file path/local file pathIf the copy directory isScp-r User@host:/dirpath/localpath//That is scp-r username @ip:/directory Path/local file pathUploading files or directories from a local to a remote host
Upl
SFTP is an interactive file transfer program. It is similar to FTP, but it carries on the encrypted transmission, has the higher security than the FTP.
1. Common Landing Method:
Format: SFTP
Connect
2. View SFTP supported commands
Use the help command to view supported commands, such as:
Sftp>help
(where "L" i
introduction.How to connect the host remotely, upload and download files, and some related actions.For example, if the IP of the remote host is 202.206.64.33 or domain name www.hebust.edu.cn, the user name is Fyt, in the command line mode: SFTP [email protected] or [email protected] Enter prompt for password. Enter the prompt sftp>If you log on to the remote machine not to upload the downloaded file,modify
://windows.php.net/downloads/pecl/releases/ssh2/0.12/
Choose the extension package according to your PHP version, here I use php5.3, so I downloaded the php_ssh2-0.12-5.3-ts-vc9-x86.zip (download link)
2. After the decompression, there will be three files, Libssh2.dll, Php_ssh.dll, php_ssh2.pdb.
3. Put Php_ssh.dll, php_ssh2.pdb in your PHP extension directory under php/ext/.
4. Copy the Libssh2.dll to the C:/windows/system32 and C:/WINDOWS/SYSWOW64
5
directory or a file for f in OS. listdir (local): # traverse the local directory sftp. put (OS. path. join (local + f), OS. path. join (remote + f) # upload the file else in the directory: sftp. put (local, remote) # upload file failed t Exception, e: print ('upload exception: ', e) sf. close () def sftp_download (hos
Http://www.byywee.com/page/M0/S755/755589.htmlThis article only describes how to apply the SFTP functionality implemented by Jsch.SFTP is the abbreviation for secure file Transfer protocol, the Enron document transfer peace talks. The transfer file can be thought of as an encryption method of Enron. SFTP is part of SSH and is an Enron format for transferring files to the office.
Build sftp in Centos 7
# Use ssh-V to check the openssh version. if the version is earlier than 4.8p1, you must upgrade and install openssh.
1. Create an sftp group # groupadd sftp 2. Create an sftp user, the home Directory of the user named aguisftp # useradd-g sftp-s/bin/f
/fuyatao/, the index is stored in the/var/www/fuyatao/directory of the remote host. download php to The Local/home/fuyatao/directory. Sftp> put/home/fuyatao/downloads/Linuxgl.pdf/var/www/fuyatao/this statement will upload the linuxgl.pdf file in the local/home/fuyatao/downloads/directory to the remote host/ var/www/fuyatao/directory. If you do not know the Directory of the remote host, the pwd command can h
FTP are probably all used, SFTP used estimates are relatively few. Simply put, it is a secure before FTP, through the SSH channel between the local and remote server file transfer, more secure.
Connection
This is usually the case for SSH connections:
SSH sam@zfanw.com
then enter the password.
Sftp basically is to change ssh for
application.
· Cd directory:
Change the current remote working directory.
· LCD directory:
Change the current local working directory.
· Ls [-R] [-l] [file...]:
List the file names on the remote server. If it is a directory, the contents of the directory are listed. If-R is specified in the command line, the directory tree is displayed recursively. (By default, subdirectories are not accessed ). When-l is specified in the command line, the file and directory permissions, owner, size, and modifi
;> Sftp.logfor/f%%i in (' realdate.com/f= "Ccyy-mm-dd" ') do (set locallogdate=%%i)for/f%%i in (' realdate.com/f= "Hh:mm:ss" ') do (set locallogtime=%%i)echo%locallogdate%%locallogtime% >> Sftp.logPsftp remotehost-l username-pw Password Echo. >> Sftp.logEcho done. >> Sftp.logPut Psftp.exe, realdate.com, and Sftp.bat in the same folder, set up a scheduled task for Sftp.bat, and sleep at ease in the middle of the night.######## #2ftp/sftp automatically
Directory (?) [-]
Overview
SFTP Password-Free login operation method
1 log on to the server host in the current user root directory execution with RSA algorithm as an example
2 Upload the Homesshid_rsapub file on the server to the HOMESSH directory of the client machine
3 Adding client host information to the Homesshknown_hosts file
Description
Real Exercise
SSH Special Slow fault
OverviewThe ma
private key filenames are Jane,JANE.PPK. The public key is placed in the pulic key folder under Freesshd, and the private key is used by the client. About the client FileZilla: Open the Site manager, fill out the site information to be connected and user name and password, if the public key authentication (public key authentication, the user name that column is to fill, the password is not required), you need to add in the SFTP option Putty generat
identical to the user name, for example, the user name is Jane, and the public and private key filenames are Jane,JANE.PPK. The public key is placed in the pulic key folder under Freesshd, and the private key is used by the client. About the client FileZilla: Open the Site manager, fill out the site information to be connected and user name and password, if the public key authentication (public key authentication, the user name that column is to fill, the password is not required), you need to
When a company application system is docked with a partner, the other party needs to use the app to upload the downloaded files to our company server via SFTP free password entry. Other partners were previously FTP-switched files.Looked up some information on the Internet. Most of the SFTP based on the Centeros Redhat configuration, the following sftp was configu
. If-R is specified in the command line, the directory tree is displayed recursively. (By default, subdirectories are not accessed ). When-l is specified in the command line, the file and directory permissions, owner, size, and modification time are listed.
If no parameter is specified, the contents of. (current directory) are listed. In general, options-R and-l are incompatible.
· Lls [-R] [-l] [file...]:
Like ls, but it is for local files.
· Get [file...]:
Transfers the specified file from the
From the technical point of view, a few requirements: 1, from the security point of view, SFTP will be more secure a little more 2, online server to provide on-line services, users need to control, only let users in their home directory activity 3, users can only use SFTP, can not ssh to the machine to operate Provide SFTP service, can use the system comes with
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.