RHEL5.5 configure SFTP-ONLY access

Source: Internet
Author: User
We recommend using SSH for remote access in RHEL, but sometimes we only want users to access files on the server, but cannot log on to the server for operations, that is, cannot log on to the server through SSH, however, SFTP can be used for file transmission. The following configuration can be used for control. If you want to control the sftp directory, you need openssh4.8p1 or above. If the version is low, reload it as follows: http://ftp.jaist.ac.jp/pub/OpenBSD/OpenSSH/portab

We recommend using SSH for remote access in RHEL, but sometimes we only want users to access files on the server, but cannot log on to the server for operations, that is, cannot log on to the server through SSH, however, SFTP can be used for file transmission. The following configuration can be used for control.

If you want to control the sftp directory, you need openssh 4.8p1 or above. If the version is low, reload it as follows: http://ftp.jaist.ac.jp/pub/OpenBSD/OpenSSH/portable/

View ssh Version

1. Configure the telnet connection. If you reinstall ssh, you need to use telnet to remotely (vnc is also supported)

View the installed telnet

Set telnet disable to no

Configure telnet to allow root login. Comment out pam_securetty.so.

Restart the telnet Service

Related Article

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.