Skip to content

Error reading rsa_id ➡︎ Update README regarding Tilde resolution #9

Description

@ChristopherNeuwirth

Hi there,

thank you for your awesome package. Since I just finished a fancy google session why

privateKey: fs.readFileSync('~/.ssh/id_rsa')

is throwing an error:

return binding.open(pathModule._makeLong(path), stringToFlags(flags), mode);

Maybe you can add a small comment on this line in your readme example that node is very bitchy when it comes to relative paths.

privateKey: fs.readFileSync(${process.env.HOME}/.ssh/id_rsa`)

solved the issue for me.

Greetings
Christopher

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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