An open API service indexing awesome lists of open source software.

https://github.com/code-monad/lutra

A Simple CommandLine Security-Shell Manager written in Pony 🐴
https://github.com/code-monad/lutra

cli ponylang ssh ssh-keys ssh-manager ssh-manager-cli

Last synced: 2 months ago
JSON representation

A Simple CommandLine Security-Shell Manager written in Pony 🐴

Awesome Lists containing this project

README

        

# Lutra - A Simple CommandLine Security-Shell Manager written in Pony 🐴

[δΈ­ζ–‡θ―΄ζ˜Ž](./README.zh.md)

## Installation

Arch users can install Lutra from AUR like above now.
```shell
yay -S lutra # Assumes you use the Yay
```

## Build From Source

### Dependency

You'll need `ponyc` to build this program. Check [ponyc](https://github.com/ponylang/ponyc) if you don't know what it is.

### Install

Run `make && sudo make install` to install lutra. Default install destination is `/usr/bin/lutra`

## Usage

The default config path is `${HOME}/.config/lutra/lutra.conf`, if not exist the program would automaticly create an empty one.

### Add A Named Host

`lutra -a NAME HOST [-p PORT] [-k SSH_KEY_FILE]`

### Connect to A Exist Named Host

`lutra NAME`

### Delete A Named Host

`lutra -d NAME`

### Set A Host as Default

`lutra -u test -s`

After this command, lutra will use `test` as default host.

*If no default host was set, program will choose the first one in the config.*

`lutra # connet to test now!!`

### Parameters

**usage: lutra [options] [node] [dest]**

#### Options:

-i, --identify Specify a username to connect with

-l, --list List all nodes

-h, --help Get this page.

-a, --add Adding a new node

-s, --default Set a node as default

-f, --apply Applying a new config file

-d, --delete Deleting a node

-k, --key Which ssh key to use

-u, --update Update a node

-p, --port=22 Connection port, default to be 22

Args:
Given host name
Destination of the host