" group to "group" chmod mode path change file "path ""permission to" mode "chown owner path to change the owner of the file" path "to" owner "exit sftp help display this help text get remote path download file ln existingpath linkpath symbolic Link Remote File ls [Option] [path] display remote directory list lls [Option] [path] display local directory list mkdir path create remote directory lmkdir path create local directory mv oldpath newpath move r
directory Lists the contents of the local current directory lpwd print your local working directory prints the current working directory LS list contents of a remote directory column Out of the remote server directory content mkdir create a directory on the remote server creates a directory of MV move or rename a file on the remotes Server to move or rename a remote server file put upload a file from your local computer to the server will upload the
The most common ssh while SSH service is provided by SSHD when remotely landing on a Linux server, and sshd also provides SFTP functionality.
Here the user sftp-admin, only can sftp connect the server and cannot ssh to connect the server.
SFTP Connection: OKSSH Connection: NG
Create
creation remote Directory lmkdir path Create local directory MV OldPath newpath Mobile remote File Open [user @] host [: Port] Connect to a remote host put local path upload file pwd display remote working directory LPWD print This To work directory quit exit sftp rmdir path Remove remote directory lrmdir path remove local directory RM path Delete remote file
Because customers in a recent project need to use SFTP to send files to me, the company's servers are WINDOWS 2003 or WINDOWS 2008, and I have to find a free one (this is important ), easy to use and stable SFTP server software.
After some painstaking efforts, I found the following:
1. OpenSSH
Reference article: "using sftp to Build Secure Transmission in Windows
to a remote host put local path upload file pwd display remote working directory LPWD print This To work directory quit exit sftp rmdir path Remove remote directory lrmdir path remove local directory RM path Delete remote file LRM Path Delete local file symlink existingpath linkpath Symbolic Link Remote file version Show Protocol versionThe main thing we're u
Using the SFTP tutorial in PHP, PHP uses the SFTP tutorial
http://www.bkjia.com/PHPjc/976024.html www.bkjia.com true http://www.bkjia.com/PHPjc/976024.html techarticle PHP using the SFTP tutorial , PHP using the SFTP tutorial php/**php in the SFTP tutorial Telnet, FTP, S
Sample SFTP client code and sftp client codeSFTP client code example
Environment:Libssh2 1.4.3, zlib-1.2.8, openssl-1.0.1g
Author:Kagula
Last update date:
From Idea 2013, there are two projects in it. You only need to compile the libssh2 project. Before compilation, add the header files of zlib and openssl and the link location of the library file. If you are prompted to not find msvcrt. lib after compiling
change the name? No problem! You can directly specify a different file name to copy the remote file:
get remote_file_name local_file_name
Here, there are some optional parameters for the "get" command. For example, we can open the recursive option to recursively copy the content in a folder:
get -r some_directory_name
We can also enable the "-P" or "-p" parameter to tell SFTP how to set and access time to keep the object's ACL:
get -Pr some_directory
Running the SFTP command on a Linux host *
How to upload a folder using SFTPTo upload the entire directory to a remote Linux host, use the put command. However, if the directory name does not exist in the working directory on the remote host, you will receive an error, as shown in the following screen.Therefore, first create a directory with the same name on the remote host and upload it from
Use SFTP in Phpstorm and SFTP in Phpstorm
In Phpstorm, FTP connection failures often occur. In this case, we can use SFTP to connect to the server.
1. Add a server. Tools -- deployment -- configuration/browse Remote Host
2. Add a server and enter a name.
3. Enter the corresponding account and password port number, provided that the port and account have b
publish the service. If you want to change this port for special reasons, edit the C: \ ProgramFiles \ OpenSSH \ etc \ sshd_config file and change this line to the port you want, such as 8029, after the configuration is complete, restart the openssh Service (restart the service for any configuration changes ).Now that the configuration of the server is complete, we will introduce how to create the sftp service on the client.TIPS: If you want to add a
forwarding; force this group of users to only use SFTP. To learn more, run the "Man sshd_config" command. In this way, the SSH user group can access SSH without any restrictions, while the SFTP user group can only use SFTP for access and be put into the jail directory. Step 2: restart the system to make the new config
Local Current working directory
lls List Contents of a localdirectory
lists the contents of the local current directory
lpwd Print your local workingdirectory
Print Current working directory
ls List contents of a remotedirectory
List The contents of the Remote server directory
mkdir Create a directory on Theremote server
Create a directory on the remote server
mv Move or rename a file onthe remote server
to move or rename a remote server file
Put upl
SFTP is the abbreviation for Secure File Transfer protocol, security File Transfer Protocol. You can provide a secure encryption method for transferring files. SFTP has almost the same syntax and functionality as FTP. SFTP is a part of SSH and is a secure way to transfer files to the Blogger server. In fact, in the SSH package, a secure file transfer subsystem ca
machine
Lmkdir
Display the current local directory
Lpwd
Uploading/downloading data
Upload files from local machine to remote host
Put [local directory or file] [remote]Put [local directory or file]If this format is used, the file will be placed in the directory of the current remote host!
Download the file back from the remote host
Get [re
implementation of the SFTP function of some major classes of introduction1) Jsch class2) Session Conversation object class3) Channelsftp classThe Channelsftp class is the Jsch implementation of the SFTP core class, which provides some common methods of operation for SFTP, as follows
Method name
Method description
/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. Add Extension=ph
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.