如何让一个ip只能一个用户登录??

由 Snoopy 在 11-04-2003 17:28 发表:

如何让一个ip只能一个用户登录??

比如ssh也好,ftp也好,1.1.1.1这个ip只能用aa用户登录,

使用别的用户登录不了,或是别的ip用aa登录不了

具体怎么实现啊?????


And then in the evening light, when the bars of freedom fall

I watch the two of you in the shadows on the wall

How in the darkness steals some of the choices from my hand

Then will I begin to under


由 r2007 在 11-04-2003 18:36 发表:


ssh:

将此行加入\etc\ssh\sshd_config文件即可

AllowUsers [email protected] [email protected] [email protected]

ftp: 看具体用哪个了。


由 Snoopy 在 11-05-2003 07:58 发表:


如果是vsftp呢??


And then in the evening light, when the bars of freedom fall

I watch the two of you in the shadows on the wall

How in the darkness steals some of the choices from my hand

Then will I begin to under


由 Snoopy 在 11-05-2003 08:46 发表:


我将上面那句改了用户和地址加进取,出错了!!!

格式是怎样的啊,,搞不定也!

[root@Snoopy Important]# ssh snoopy

/etc/ssh/ssh_config: line 43: Bad configuration option: AllowUsers

/etc/ssh/ssh_config: terminating, 1 bad configuration options


And then in the evening light, when the bars of freedom fall

I watch the two of you in the shadows on the wall

How in the darkness steals some of the choices from my hand

Then will I begin to under


由 r2007 在 11-05-2003 08:58 发表:


> quote: > > * * * > > 最初由 pinksnoopy 发表
>
> **我将上面那句改了用户和地址加进取,出错了!!!
>
>
>
> 格式是怎样的啊,,搞不定也!
>
>
>
> [root@Snoopy Important]# ssh snoopy
>
> /etc/ssh/ssh_config: line 43: Bad configuration option: AllowUsers
>
> /etc/ssh/ssh_config: terminating, 1 bad configuration options ** > > * * *

应该是sshd_config,而不是ssh_config。然后重新启动sshd,ssh是客户端,sshd才是服务。


由 大熊宝宝 在 11-05-2003 11:45 发表:


> quote: > > * * * > > 最初由 r2007 发表
>
> 应该是sshd_config,而不是ssh_config。然后重新启动sshd,ssh是客户端,sshd才是服务。 > > * * *

搞错的人还真多 对了 r2007兄 你这里sshd的howto有没有 有的话send一份给我

[email protected] 谢谢了


请兄弟们正确发贴,把问题发到相关版块 发贴标题请简明扼要 谢谢大家配合.

新会员发贴前请学会搜索论坛 有可能你的问题已经有答案了


由 r2007 在 11-05-2003 12:03 发表:


http://www.openbsd.org/cgi-bin/man....ery=sshd_config

只有这个官方的连接,行吗?


由 Snoopy 在 11-05-2003 13:08 发表:


谢了大家,,,那vsftp呢???

有没介绍这方面的文章啊??


And then in the evening light, when the bars of freedom fall

I watch the two of you in the shadows on the wall

How in the darkness steals some of the choices from my

Published At
Categories with 服务器类
Tagged with
comments powered by Disqus