How to Use the gssftp service provided by Linux

Source: Internet
Author: User

For new contactsLinuxOperating system personnel, for how to useGssftpThe service must be unclear. It doesn't matter. This article will explain how to use this service.

Both RedHat and CentOS provide a gssftp service. The usage is as follows:

[root@linux local]# cd /etc/xinetd.d [root@linux xinetd.d]# ls chargen cups-lpd daytime-udp echo-udp gssftp krb5-telnet rsync time-udp chargen-udp daytime echo eklogin klogin kshell time

Edit the gssftp file, change server_args to-l, and change disable to no:

[root@linux xinetd.d]# vi gssftp[root@linux xinetd.d]# vi gssftp
# default: off
# description: The kerberized FTP server accepts FTP connections \
# that can be authenticated with Kerberos 5.
service ftp
{
flags = REUSE
socket_type = stream
wait = no
user = root
server = /usr/kerberos/sbin/ftpd
#server_args = -l -a
server_args = -l
log_on_failure += USERID
#disable = yes
disable = no
}

Restart the xinetd service:

[root@linux xinetd.d]# service xinetd restart Stopping xinetd: [ OK ] Starting xinetd: [ OK ]

Check that port 21 is Enabled:

[root@linux xinetd.d]# netstat -tnlp Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 0.0.0.0:21 0.0.0.0:* LISTEN 22543/xinetd

If the firewall does not open the port, open port 21 and restart the Firewall Service:

[root@linux xinetd.d]# vi /etc/sysconfig/iptables [root@linux xinetd.d]# service iptables restart Flushing firewall rules: [ OK ] Setting chains to policy ACCEPT: filter [ OK ] Unloading iptables modules: [ OK ] Applying iptables firewall rules: [ OK ]

In this way, the ftp service is available and users can log on to the linux system. However, gssftp is not secure enough for temporary emergency or internal use. vsftp is recommended for stable FTP services.

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.