LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 2414|回复: 2

Net::SSH::Perl模块

[复制链接]
发表于 2004-6-2 01:15:53 | 显示全部楼层 |阅读模式
当连接有的机器的时候说login那步Permission denied
连接其它的机器的时候没有错误。这是怎么回事阿?login的返回值是什么
发表于 2004-6-7 21:52:37 | 显示全部楼层
對方有用Tcp wrapper設定Allow Hosts...(/etc/hosts.allow)
或 (/etc/hosts.deny) 檢查一下吧...

如果對方是 linux ,那可能是xined擋掉了...檢查一下..
/etc/xinetd.d 裡面的跟ssh有關係的file...
找找 allow的字眼...


如果上面都沒問題..檢查看看你是不是忘了給密碼了
FREQUENTLY ASKED QUESTIONS
Q: How do you supply a password to connect with ssh within a perl script using the Net::SSH module?

A: You don't. Use RSA or DSA keys. See the ssh-keygen(1) manpage.

Q: My script is "leaking" ssh processes.

A: See "How do I avoid zombies on a Unix system" in perlfaq8, IPC::Open2, IPC::Open3 and "waitpid" in perlfunc.
发表于 2010-10-30 15:18:09 | 显示全部楼层
我也碰到了这个问题,根据
http://www.perlmonks.org/?node_id=590548
是文档描述和代码不符
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表