Upload and download files based on sftp
1. What is sftp?
Sftp is short for Secure File Transfer Protocol and is a Secure File Transfer Protocol. It provides a secure encryption method for transferring files. It is mainly used to upload and download files in Linux, without additional software or tools.
2. How to enable sftp
S F T PAccess
# SFTP Username@hostname(can also be directly sftp hostname at this time username is the current user's username) upload
Download
# SFTP > Get Destination Address local addressView
# SFTP > PWD target server directory query
# SFTP > Lpwd local server directory
This time I want to talk about "SCP and sftp".Either SCP or SFTP is one of the functions of SSH. are used to transfer files using the SSH protocol.Needless to say, the contents of the file, that is, the user information at the time of the login is SSH encrypted before transmission, so SCP and SFTP to achieve a secure file transfer.SCP and CP commands are similar,
Generally speaking, we choose and use VPS to build stations or other projects, are the majority of our own use. So in the management of Web site files and modify the server configuration file, there is no need to set up a separate FTP account, a more troublesome, and the account set too much is not safe. Therefore, if we independently manage the VPS server, we can use SFTP transmission mode absolute rights to manage the Web site and system files.
SFTP is an interactive file transfer program. It is similar to FTP, But it performs encrypted transmission, which is more secure than FTP. The following describes how to remotely connect to the host, upload and download files, and perform related operations.Install apt-Get install SFTP In ubuntu. Make sure that you have sufficient permissions to install this program.How to Use the
Linux remote file acquisition through sftp Txt code linux remote file acquisition through sftp steps: 1) sftpusername @ hostname // enable the default port www.2cto.com//if you want to specify the port number, the syntax is: sftp-pportusername@hostname//or... linux remote file acquisition through sftp Txt code linux re
directory of the remote machine, so sftp is often used as the first choice.
Sftp
Sftp uses ssh2 for data connections, so file transmission is as secure as possible. Two main reasons for using sftp to replace ftp are:
1. Password is never transmitted in plain text to prevent sniffer attacks.
2. Data is encrypted durin
run a graphics program through SSH, you can use:Ssh-X username @ addressAfter the connection, enter the program name. For example, start gedit and enter gedit. In addition, even if the program appears on your computer, it still runs on a remote computer. If you start OpenOffice or other complex graphics programs, there may be a delay of some time.Another SSH connection is used to transmit files. The sftp command can implement this function. Using
complete. 2. Configure the SFTP plugin
Use SHIFT + Ctrl + p to open the command panel and enter:
SFTP
Click the pop-up sftp below to wait for the installation to complete.Then open it in turn:
File-> sftp/ftp-> Setup Server
You will see the following code (other code is not listed, I added the following Chinese comm
1. Installation dependenciesYum Install-y openssl-develYum install-y zlib-devel zlibOr if you have RPM packages. You can use the following methodRPM-IVH--nodeps--force openssl-devel-0.9.8e-22.el5_8.4.x86_64.rpmRPM-IVH--nodeps--force zlib-1.2.3-27.el6.x86_64.rpmRPM-IVH--nodeps--force zlib-devel-1.2.3-27.el6.x86_64.rpm2. Installing OpenSSLTar zxvf openssl-1.0.0.tar.gzCD openssl-1.0.0./configMakeMake install3. Installing OpenSSHTar zxvf openssh-5.4p1.tar.gzCD OPENSSH-5.4P1./configure--with-ssl-dir=
Figure 1
If you do not like to use the Ubuntu Server command line, the following content will surprise you. We can also use a graphical interface to manage the command line system. There are also many remote graphical management software, such as SSH Secure Shell Client,FileZilla.
Using a graphical interface is easy to operate, but it also has to pay the price-you cannot operate files other than the user's permissions, which greatly limits its practicality. Therefore, this is why it only provide
first of all, let's introduce what is SFTP. is a secure file transfer protocol. You can provide a secure encryption method for transferring files, and the syntax and FTP are basically the same. It is also part of SSH. The second step is to introduce you to the SFTP service under Linux server.1. Open the SFTP service on the Linux server: Vi/etc/ssh/ssd_configAdd a
1. Attention ISSUESFormat of Uri: Sftp://zhangsan:[email protected]:22Dir question: determine if there is no creation and then go into the analogyConfig problem: stricthostkeychecking=noProgress issue: Variable Saving required2. code Private voidTransfer_sftp (String attrpath, Element groupnode,LongSizethrowsjschexception, sftpexception, Unsupportedencodingexception{attrpath= Attrpath.replaceall ("sftp:/
Server:node1 192.168.123.19 CentOS Release 6.5 (Final)Client:node2 192.168.123.39 CentOS Release 6.5 (Final)Requirements Description:1. The server mainly stores some more important files.2. Clear text transmission is not allowed.3. Lock the user directory, you can upload and download files at home directory.4. Users cannot log on to the Linux system.5. Limit the speed of access and the number of users logged in.Download and install the software;General Yum Source is not, need to go to the offici
SFTP is an SSH-based file Transfer protocol that provides a more secure and faster file transfer capability than Zmodem.
How to receive files using SFTP:
1. On the local prompt, use the sftp command to log on to the host to receive the file.Xshell:\> sftp hostname
2. Receive the required files with the get command a
Because the service provider migrates from the FTP server to the SFTP server, alas ~ ~ ~, the bitter force we will change to the right. Now let's talk a little bit about how this is achieved.----------------------------------------I'm a shameless split-line------------------------------------------------------------Do not repeat the difference between FTP and SFTP, only to mention a little to a certain exte
Software (package) installation/uninstallationYum-y Install package name (Support *): automatic selection of y, automaticYum Install package name (support *): Manually select Y or nYum Remove package name (not supported *)RPM-IVH Package Name (support *): Install RPM PackageRPM-E Package name (not supported *): Uninstall RPM Package-----------------------------------------------------------First install: RZ SZ Command Pack (if installed, no more installation of OH)Yum-y Install LrzszRZ (receive)
First identify a few things before you start the operation(1) Determine the sshd version is higher than 4.8(2) Confirm that SELinux is off, or authorize the corresponding directory(3) Be sure to follow the steps otherwise there may be permissions issues(4) The following command uses root operation1. Create an SFTP user groupGroupadd sftpusers2. Create a directory that specifies to block mkdir/home/sftp/sun
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.