Obviously FileZilla is doing something I am not. I don’t have admin access to the Linux server so I can’t get additional information about its configuration, but I can confirm that these connection parameter values work in FileZilla. let sftp = new Client() Īnd this is the error I get using the above code:Įrror: connect: getConnection: All configured authentication methodsĪt SftpClient.fmtError (D:\app\node_modules\ssh2-sftp-client\src\index.js:111:22)Īt nnect (D:\app\node_modules\ssh2-sftp-client\src\index.js:249:37)Īt processTicksAndRejections (node:internal/process/task_queues:96:5)Īt async getSftpConnection (D:\app\index.ts:67:12) catch errorĪs a test I used the exact same values to connect using the FileZilla ftp client and it connects with no problem. However, using the exact same code but passing in connection parameters for a different sftp server (hosted on Linux) that requires a username and privatekey, but not a password fails to connect. ![]() Now we need a few details to proceed: Server’s IP address Username Password and Port number As already stated, there are two ways to do this. The remote site is the server where all of your site files get stored, so you need to connect to the server in order to control them. ![]() Using Typescript, node v16.18.0 and ssh2-sftp-client, the code below can successfully connects to my sftp server (hosted on IIS) which requires a username, password and a private key. Connect SFTP Using Filezilla This is the FileZilla interface: The left shows the local directories, and the right one is about the server, which is empty since it isn’t connected yet. Step 3: Connect to the host server using FTP When you open up FileZilla, you’ll see that the remote site is Not connected to any server. ![]() ![]() I have searched stackoverflow and google extensivly and not found a solution yet.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |