📁 File Manager Pro
v10.0.3 | PHP: 7.4.33
Server: LiteSpeed
2026-06-26 16:11:02
📂
/ (Root)
/
opt
/
hc_python
/
share
/
doc
/
pycurl
/
examples
📍 /opt/hc_python/share/doc/pycurl/examples
🔄 Refresh
✏️
Editing: ssh_keyfunction.py
Read Only
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()
💾 Save Changes
❌ Cancel