Socket
Socket
Sign inDemoInstall

ssh-protocol

Package Overview
Dependencies
1
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    ssh-protocol

node-ssh-protocol =================


Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Install size
207 kB
Created
Weekly downloads
 

Readme

Source

node-ssh-protocol

Nodejs implementation of ssh protocol

Simple Usage

var fs = require('fs');
var SSHProtocol = require('ssh-protocol'),
	SSHServer = require('net').createServer().listen(22);

var ssh = new SSHProtocol({ 
	softwareversion: 'version_is_0.0',
	'ssh-rsa': { 
		publickey: fs.readFileSync(...).toString(),
		privatekey: fs.readFileSync(...).toString() 
	},
	'banner': {
		message: 'banner...\r\n'
	}
});

ssh.on('connection', function (ssh_conn) {
	ssh_conn.on('terminal', function (request, response) {
		response.clear();
		response.stdout('Welcome, ' + this._mdc._user.Email + '!\r\n');
	});

	ssh_conn.on('authentication', function (request, response) {
		response.success();
	});
	
	ssh_conn.on('data', function (request, response) {
		response.stdout(request.data);
	});
});
	
ssh.listen(SSHServer);

Support Client

  • Connection through OpenSSH is possible
  • Connection through PuTTY is not yet supported. I don't understand how PuTTY do calculate kex hash...

FAQs

Last updated on 05 Apr 2013

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc