Skip to content Skip to sidebar Skip to footer

How To List All Subdirectory Using Nodejs Sftp Client?

Amusing node JS ssh2-sftp-client. I want to the list all the directory and its subdirectories in a given path? let sftp = new ssh2SftpClient(); console.log(sftp); sftp.connect({

Solution 1:

why are you using username/ password? sftp is supposed to use ssh keys. once the keys are shared, you dont need password.. you should be able to connect with the username.


Post a Comment for "How To List All Subdirectory Using Nodejs Sftp Client?"