用shell写cgi程序,ssh问题
yflqb 2017-09-28 02:43:12 #!/bin/bash
echo "content-type:text/html"
echo ""
pssh -H 192.168.0.1 "uptime"
我的程序如上,在本机能正常执行,已经加了信任主机,但是放到网页里时,就不能正常执行,用ssh也不能执行
结果如下
stderr:could not create directory '/usr/share/httpd/.ssh'
the authenticity of host '192.168.0.1(192.168.0.1)' cannot be established
ECDSA key fingerprint is xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
are you sure you want to continue connecting (yes/no)?
host key verification failed.