Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ssh-connect-prompt

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ssh-connect-prompt

Connect to ssh using the ssh2 module and prompt stdin for host verification, key decryption etc. Similar to what standard ssh does.

  • 0.0.2
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

ssh-connect-prompt

Connect to ssh using ssh2 and prompt stdin for host verification, key decryption etc. Similar to what standard ssh does.

npm install ssh-connect-prompt

Usage

var connect = require('ssh-connect-prompt');

// c is a ssh2 connection.
var c = connect('username@example.com');

// Host verification events and passphrase input will be forwarded to the terminal as a prompt in
// a way that is similar to the regular ssh prompt

c.on('non-interactive', function() {
	console.log('No more prompts...');
});

c.on('ready', function() {
	console.log('Connection open!');
});

If $SSH_AUTH_SOCK is set it will be passed as an agent and id_rsa will be used as the private key per default. When a key is verified it will be added to ~/.ssh/known_hosts - just like regular ssh

License

MIT

FAQs

Package last updated on 16 Jan 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc