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