更多: zhilu jiaocheng
解决方法
这是由于 TCP Wrapper 设置不正确:
$ cat /etc/hosts.allow sshd : ALL snmpd : ALL vsftpd : ALL ALL : localhost
$ cat /etc/hosts.deny ALL:ALL
默认情况下,配置拒绝来自任何服务器的所有流量,但以下情况除外:
- 来自本地主机的连接
- 连接到 sshd、snmpd 和 vfstpd
将以下内容添加到 /etc/hosts.allow 以允许访问 NFS 服务器上的 rpcbind:
# vi /etc/hosts.allow rpcbind: ALL
问题
从 Linux NFS 服务器导出 NFS 共享时,它能够从 localhost 列出共享:
[root@server]# exportfs -a [root@server ~]# exportfs /data [world] [root@server ~]# showmount -e localhost Export list for localhost: /data *
但是在从 NFS 客户端列出 NFS 共享时遇到错误:
[root@client ~]# showmount -e server clnt_create: RPC: Port mapper failure - Authentication error [root@client ~]# rpcinfo server rpcinfo: can't contact rpcbind: : RPC: Authentication error; why = Client credential too weak 《 -- rpcinfo: 无法联系 rpcbind: : RPC: 认证错误; 原因 = 客户端凭据太弱
日期:2020-09-17 00:12:43 来源:oir作者:oir