SFTP Module ssh2-sftp-client

Hi,

I am trying explore the ssh2-sftp-client way to monitor sftp. Can you let me know if the module needs to be enabled for a particular NR account?

Under synthetic, browser script it doesn’t recognize const Client = require(‘ssh2-sftp-client’);

What are the pre-requisite need to be done before we create a scripted browser to monitor sftp server?

I am referring Relic Solution: FTP, SFTP, LDAP, TCP, and SMTP Examples

Thanks
Sandhya

I went ahead and created the API test monitor and while validating i am getting the below error
Script execution failed (due to an unhandled promise rejection): Error: connect: Timed out while waiting for handshake after 1 attempt

My SFTP endpoint is publicly accessible/

Error: connect: Timed out while waiting for handshake after 1 attempt
at Object.formatError (/opt/runtimes/4.0.0/node_modules/ssh2-sftp-client/src/utils.js:62:18)
at Client.connectErrorListener (/opt/runtimes/4.0.0/node_modules/ssh2-sftp-client/src/index.js:99:21)
at Client.emit (events.js:182:13)
at Timeout._onTimeout (/opt/runtimes/4.0.0/node_modules/ssh2/lib/client.js:697:14)
at ontimeout (timers.js:436:11)
at tryOnTimeout (timers.js:300:5)
at listOnTimeout (timers.js:263:5)
at Timer.processTimers (timers.js:223:10)

Hello ,

I have the same issue , @sandhya_mohanan_anoo did you find a solution for this ?

It was firewall issue, once i opened the firewall I got this working.

1 Like