Skip to content

Error when connecting to SFTP #113

@mdelorimier

Description

@mdelorimier

Hello,

I am having an issue when trying to connect to a SFTP server. This might be linked to the server's fingerprint not beeing known (it is present in ~/.ssh/known_hosts).

Using the ssh2 package, I am able to connect and get folder listing using the same configuration.

Here is the configuration file :

stage:
    scheme: sftp
    host: "***.com"
    port: 22
    user: "***"
    pass: "***"
    check: true
    path:
        local: "dist/browser/"
        remote: "public_html/"

Here is the error :

TypeError: First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.
    at Function.Buffer.from (buffer.js:161:9)
    at new Buffer (buffer.js:131:17)
    at onNEWKEYS (C:\Users\Mathieu de Lorimier\AppData\Roaming\npm\node_modules\dploy\node_modules\ssh2\lib\Connection.js:2282:29)
    at Parser.<anonymous> (C:\Users\Mathieu de Lorimier\AppData\Roaming\npm\node_modules\dploy\node_modules\ssh2\lib\Connection.js:123:5)
    at emitNone (events.js:105:13)
    at Parser.emit (events.js:207:7)
    at Parser.parsePacket (C:\Users\Mathieu de Lorimier\AppData\Roaming\npm\node_modules\dploy\node_modules\ssh2\lib\Parser.js:468:12)
    at Parser.execute (C:\Users\Mathieu de Lorimier\AppData\Roaming\npm\node_modules\dploy\node_modules\ssh2\lib\Parser.js:249:14)
    at Socket.<anonymous> (C:\Users\Mathieu de Lorimier\AppData\Roaming\npm\node_modules\dploy\node_modules\ssh2\lib\Connection.js:523:18)
    at emitOne (events.js:115:13)

Regards

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions