/
/
opt
/
hc_python
/
share
/
doc
/
pycurl
/
examples
Server: server63.web-hosting.com (198.54.116.184)
You: 216.73.216.187
PHP 7.4.33
Dir:
/opt/hc_python/share/doc/pycurl/examples
Edit:
/opt/hc_python/share/doc/pycurl/examples/ssh_keyfunction.py
import pycurl sftp_server = 'sftp://web.sourceforge.net' c = pycurl.Curl() c.setopt(c.URL, sftp_server) c.setopt(c.VERBOSE, True) def keyfunction(known_key, found_key, match): return c.KHSTAT_FINE c.setopt(c.SSH_KNOWNHOSTS, '.known_hosts') c.setopt(c.SSH_KEYFUNCTION, keyfunction) c.perform()
Ukuran: 302 B