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 serve
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
As we all know, the biggest difference between Windows and Linux systems lies in its non-open-source nature. Therefore, in Windows, we transfer files and share resources through FTP, compared with the previous TFTP protocol, FTP provides necessary security measures. However, for some scenarios that require a high level of network security, it is necessary to strictly prevent data transmission from being stolen by monitoring tools, the FTP protocol is not competent. In this case, we should find a
/nologin prohibits test1 users from logging into the operating system"B"Rman:/usr/sftp-dir # Mkdir/usr/sftp-dir/test1//Use the root user to create a directory for the Test1 accountCheck test1 directory permissions, must be root user 755 permissionsRman:/usr/sftp-dir # LLDrwxr-xr-x 2 root root 4096 Oct 09:25 test1Rman:/
To summarize:SFTP Service
#ssh –V to view the OpenSSH version, if it is below 4.8p1, you need to upgrade the installation yourself,
Create an SFTP group: #groupadd SFTP
Create Test Account: #useradd-G sftp-s/bin/false testuser Change Password: # passwd TestUser
. However, after using Chroot to specify the root directory, the root should be unable to write, so create a new directory for mysftp to upload files. This directory owner is mysftp, all groups are SFTP, the owner has write permissions, and all groups have no write permission. The command is as follows:mkdir/data/sftp/mysftp/upload /data/
procedure is as follows. You can configure the sftp server step by step.1. Add a user groupCode example: # groupadd sftp2. Add a user and set it to an sftp GroupCode example: # useradd-g sftp-s/sbin/nologin-M sftp (if you have set a user before, you can add this user to the
Linux Centos 6.6 Build SFTP ServerUse the system's own internal-sftp to build an SFTP server in the CentOS 6.6 environment.Open the Command Terminal window and follow the steps below.0. View OpenSSH version[Plain] view plaincopy
Ssh-v
Use the SSH-V command to view the version of OpenSSH, the version must
Use the system's own internal-sftp to build an SFTP server in the CentOS 6.6 environment.Open the Command Terminal window and follow the steps below.0. View OpenSSH version[Plain]View PlainCopy
Ssh-v
Use the SSH-V command to view the version of OpenSSH, the version must be greater than 4.8P1, and the version below will need to be upgraded.1.
SSH file transfer protocol is a File Transfer Protocol that is more secure than common FTP. (Reference: http://en.wikipedia.org/wiki/SSH_File_Transfer_Protocol) It works on Secure Shell (SSH) to ensure files are encrypted for transmission.Because of work needs, I have studied how to configure SFTP on Ubuntu server. The record is as follows. Requirement: Activate the SFT
Use the system's own internal-sftp to build an SFTP server in the CentOS 6.6 environment.Open the Command Terminal window and follow the steps below.0. View OpenSSH version
1
ssh-V
Use the SSH-V command to view the version of OpenSSH, the version must be greater than 4.8P1, and the version below will need to be upgraded.1.
explained the success of the building.Note: If CHROOTDIRECTORY/HOME/SFTP is added to the configuration file, the owner and the owning group of the root directory must be root, at which point the directory permissions should be set:Chown root:root/home/sftpchmod 755/home/sftpAt this time only the user root has write access to the/HOME/SFTP directory, and the use of Sftpuser this user login is not write perm
What is SFTP, Public Key Authentication,
SFTP is not an extension of the FTP protocol. It is a File Transfer Protocol Based on SSH. When the SFTP server has a public key for logging on to the client, the client can use its own private key to shake hands with the server. This
Error: unable to establish FTP connection with SFTP ServerProblem
One day I will connect to my Web server. I use FileZilla to connect to the FTP server. When I enter the host name and password to connect to the server, I get the following error.
Error: Cannot establish FTP connection to an
Windows XP to build an SSH-based sftp server, server can be used freesshd,f-secure server, etc.,FileZilla server is not available, before the silly with Filezi Lla to do the server, can not find any configuration options for
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
Development encountered a demand, the need to upload pictures via SFTP to the remote server, before the use of this function, toss me a few genius to fix, the following records my treatment:$sftp= ' ssh2.sftp://';Connect SFTP$conn= Ssh2_connect (' IP ', ' Port '));Login Ssh2
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.