Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8760993
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T15:11:00+00:00 2026-06-13T15:11:00+00:00

At the moment I’m trying to use node-sftp in order to provide my nodejs

  • 0

At the moment I’m trying to use node-sftp in order to provide my nodejs script with the ability to SFTP with a private key.

That module appears to be broken since v 0.6 of node (tty.open is no longer a method).
So i’ve tried to use a child process and spawn my sftp command.

Now the connection appears to work fine (I checked the ftp servers logs @ /var/log/auth.log)
I can also see some output in the Node window…

Permanently added '46.x.x.x' (RSA) to the list of known hosts.
Connected to 46.x.x.x.
Changing to: /home/deploy/somefolder

When I connect directly via the command line using the following command it ends up with a prompt like sftp>, which is waiting for my FTP commands

sftp -o Port=22 -o PasswordAuthentication=no -o IdentityFile=private_key -o UserKnownHostsFile=/v/null -o StrictHostKeyChecking=no -o BatchMode=yes deploy@46.x.x.x:/home/deploy/somefolder

Does anyone have any suggestions on where I might be going wrong?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T15:11:01+00:00Added an answer on June 13, 2026 at 3:11 pm

    Its hard to say without a little more detail, but I would take a look at:
    https://github.com/chjj/pty.js/

    This will emulate a tty device that you can read and write to.

    If you can provide some additional code you have tried, we may be able to point you in a better direction.

    You could also try cloning the node-sftp module from: https://github.com/ajaxorg/node-sftp.git and using the library directly instead of from npm, it looks like the latest version in github has support for node versions newer that 0.6

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

At the moment I'm trying to figure out how use default and custom settings
There is a moment in my app, that I need to force to show
At the moment I am trying to HTTP response request in my Sharepoint WarmUp
At the moment I'm using all sorts of if statements and substrings in order
for the moment the script does like this: click on the link edit the
At the moment I have a windows service written in C# that waits for
A moment ago I asked this question: javascript sort array to align with order
Having a duh moment trying to implement a new content page Here's the structure
In the moment I can add li tags to my list with script. But
At the moment I have an C# console application that exposes Web Services through

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.