我有一个服务器,其中有几个IP地址,可以在每个IP地址上托管站点.我有一个没有与之关联的网站的IP地址.我想只允许SSH登录到没有与之关联的站点的一个IP地址.这可能吗?如果是这样,谁能告诉我如何实现这一目标?
解决方法
在sshd_config中查看ListenAddress.
ListenAddress Specifies the local addresses sshd(8) should listen on. The following forms may be used: ListenAddress host|IPv4_addr|IPv6_addr ListenAddress host|IPv4_addr:port ListenAddress [host|IPv6_addr]:port If port is not specified,sshd will listen on the address and all prior Port options specified. The default is to listen on all local addresses. Multiple ListenAddress options are permitted. Additionally,any Port options must precede this option for non- port qualified addresses.