suse 11 telnet 和 ftp安装开通端口

INSTALL(ssh默认安装 以下操作结合YaST即可~)
###########################
yast software manager
search telnet
install

search vsftp
install
###########################
检查:
chkconfig --list | grep firewall
chkconfig --list | grep telnet
chkconfig --list | grep ftp

TELNET(Config)
###########################
vi /etc/xinetd.d/telnet
service telnet
{
        socket_type     = stream
        protocol        = tcp
        wait            = no
        user            = root
        server          = /usr/sbin/in.telnetd
        disable         = no
}
vi /etc/pam.d/login
# pam_securerrytty.so 注释这一行

vi /etc/ftpusers
在root前加注释,让root可以登陆
#root
/etc/init.d/xinetd restart
###########################

FTP
###########################
vi /etc/xinetd.d/vsftpd
disable = no
vi /etc/vsftpd.conf
local_enable=YES
listen_port=21
anonymous_enable=NO
write_enable=YES
#####start#####
1./etc/init.d/xinetd restart
2.service vsftpd restart

猜你喜欢

转载自michales003.iteye.com/blog/1297669
今日推荐