先查看ftp是否启用此服务
chkconfig --list|grep ftp
chkconfig gssftp on
#####没机会让你输入用户及密码就退出了
[root@localhost etc]# ftp localhost
Connected to localhost.localdomain.
220 localhost.localdomain FTP server (Version 5.60) ready.
334 Using authentication type GSSAPI; ADAT must follow
GSSAPI accepted as authentication type
GSSAPI error major: Miscellaneous failure
GSSAPI error minor: Unknown code krb5 195
GSSAPI error: initializing context
GSSAPI authentication failed
334 Using authentication type KERBEROS_V4; ADAT must follow
KERBEROS_V4 accepted as authentication type
Kerberos V4 krb_mk_req failed: You have no tickets cached
Name (localhost:root):
530 Must perform. authentication before identifying USER.
Login failed.
Remote system type is UNIX.
Using binary mode to transfer files.
LINUX安装的时候,选择组件的时候要是没有选择FTP服务器(这里是vsftpd),系统会自带一个叫gssftp的ftp服务器。
安装好之后默认是本机用户不能登陆的。只要找到/etc/xinetd.d/gssftp,把 server_args 後面的 -a 移除,只留下 -l。重新启动gssftp:
/sbin/service xinetd restart
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/9240380/viewspace-667836/
,如需转载,请注明出处,否则将追究法律责任。