npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

ez-ssh

v1.0.2

Published

Super simple command line interface for handling ssh into a remote machine.

Downloads

8

Readme

ez-ssh

A super-simple Mac OS X command line interface for handling ssh into a remote machine.

$ ez-ssh <alias> [options]

Installation

Install globally with npm.

$ npm i -g ez-ssh

Features

  • Easily add/manage ssh aliases to a remote host
  • Setup via flags, an interactive wizard, or store a full command
  • List or remove aliases

Usage

Use the keyword ez-ssh and provide an alias.

If you are adding a new alias, simply provide the needed flags and values.

To call a previously stored alias, simply type ez-ssh <alias>.

Options

  • -w, --wizard Use the interactive wizard to create your alias.
  • -n, --name The name used to identify the alias. This is the default entry, no flag is required.
  • -a, --address The address of the host machine to ssh into.
  • -i, --identity The name of an identity file stored in ~/.ssh, or an absolute path to the file.
  • -u, --user The name of the user to login with. Defaults to ubuntu.
  • -p, --port A specific port to ssh into.
  • -r, --remote Whether to add support for Remote VSCode editor on port 52698.
  • -c, --complete A complete ssh command to store (excluding the initial "ssh") wrapped in quotes.
  • -d, --delete Delete a stored alias.
  • -l, --list List the saved aliases. Also accessible by ez-ssh ls.
  • -v, --verbose When listing aliases, use the verbose flag to show the value each alias maps to.
  • -h, --help Display this usage guide.

Reserved Words

You cannot set an alias for the following values.

  • ls - List aliases
  • lsv - List aliases and the command they map to
  • h, help - Show the usage guide

Examples

1. Basic

Input: $ ez-ssh ec2 -i my_aws_pem.pem -a ec2-14-125-321-552.compute-1.amazonaws.com

Result: ssh -i ~/.ssh/my_aws_pem.pem [email protected]

Usage: $ ez-ssh ec2

2. Local

Input: $ ez-ssh pi -a raspberryPi.local -u pi -p 1776

Result: ssh [email protected] -p 1776

Usage: $ ez-ssh pi

3. Remote

Input: $ ez-ssh drop -a 203.0.113.0 -u root -r

Result: ssh -R 52698:localhost:52698 [email protected]

Usage: $ ez-ssh drop

4. Custom

Input: $ ez-ssh lister -c "penguin.example.net ls /usr/share/doc"

Result: ssh penguin.example.net ls /usr/share/doc

Usage: $ ez-ssh lister

5. Delete

Input: $ ez-ssh lister -d

Result: The "lister" alias has been deleted.

Compatibility

Node >= 7.10, Terminal, iTerm

License

Copyright © 2018 Robert Reed under MIT. Feel free to modify or use as you please.

Acknowledgements

This package uses a bash script that has been modified from the ttab npm package, written by Michael Klement. Thanks for the great example, Michael!

Contact

Email, GitHub, LinkedIn