UNPKG

pure-js-sftp

Version:

A pure JavaScript SFTP client with revolutionary RSA-SHA2 compatibility fixes. Zero native dependencies, built on ssh2-streams with 100% SSH key support.

13 lines 640 B
/** * Revolutionary Proxy Fix for ssh2-streams RSA Authentication * * This module uses JavaScript Proxy to intercept ssh2-streams method calls * and modify RSA key algorithm names from "ssh-rsa" to "rsa-sha2-256" at runtime. * This enables RSA key authentication with modern SSH servers without modifying * the ssh2-streams library. * * Note: This fix is ONLY for RSA keys. ECDSA and Ed25519 keys work fine with * standard ssh2-streams and should NOT use this proxy. */ export declare function applyRevolutionaryProxyFix(ssh2Stream: any, debugFn?: (msg: string) => void): any; //# sourceMappingURL=revolutionary-proxy-fix.d.ts.map