# 127-ssh

> Capture your command not found and tries to ssh

Latest version **0.1.2** (published 2013-12-28) · MIT license · 0 weekly downloads

## Install

```sh
npm install 127-ssh
pnpm add 127-ssh
yarn add 127-ssh
bun add 127-ssh
```

Provides the command `127-ssh`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.2 |
| Published | 2013-12-28 |
| First published | 2013-12-23 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Romain Berger |
| Maintainers | romainberger |

## Links

- npm: https://www.npmjs.com/package/127-ssh
- Repository: git@github.com:romainberger/127-ssh
- Homepage: https://github.com/romainberger/127-ssh
- Issues: https://github.com/romainberger/127-ssh/issues
- npm.io page: https://npm.io/package/127-ssh

## Recent versions

- 0.1.2 (latest) — 2013-12-28
- 0.1.1 — 2013-12-23
- 0.1.0 — 2013-12-23

## README

# 127 SSH

Capture your command not found errors and tries to ssh.

## Installation

To use 127-ssh you need to use zsh and node.

Start by installing the package with npm:

    npm install -g 127-ssh

Then in your `~/.zshrc` add this:

    command_not_found_handler () {
        if type "127-ssh" > /dev/null; then
            127-ssh $1
        fi
        return 127
    }

For 127-ssh to work, you need to use an ssh config file kept in `~/.ssh/config` and use it to store your ssh hosts.

## Usage

Whenever you type something in your prompt that exit as a command not found, the script will work. It tries to find an ssh configuration with a `Host` corresponding to the command you typed.

Let's say you want to ssh into your `coolserver` but you forgot to type `ssh` you'll get:

    $ coolserver
    zsh: command not found: coolserver

With 127-ssh:

    $ coolserver
    SSH Host "coolserver" found
    user@coolserver.com's password:

# LICENSE

MIT

---
_Source: https://npm.io/package/127-ssh · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
