lbssh

command module
v0.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 30, 2018 License: Apache-2.0 Imports: 19 Imported by: 0

README

lbssh

lbssh is SSH for lazybones, an experimental tool using go-prompt. Main features:

  • Auto-complete for your hosts defined in ssh config file
  • Using fuzzy search to speed up searching
  • Recommend the most possible host for you
lbssh-screenshot1 2x

How to Use

First, you need to install lbssh binary to your system's $BIN path. You could downlod the latest binary from here.

If you don't have any hosts defined in ~/.ssh/config, you should try add some:

Host us.my-awesome-linode-server-92
HostName 100.101.102.92
Port 22
User piglei

For more information on how to write ssh config, please visit

Now you are all setup, run lbssh and start your lazy life!

Customize Options

You could change the ssh binary location or ssh config file which lbssh is using, below are all supported args:

$ lbssh -h
Usage of lbssh:
      --log-level string         log level (default "INFO")
      --ssh-bin string           ssh binary path (default "/usr/bin/ssh")
      --ssh-config-file string   ssh config file location (default "/Users/piglei/.ssh/config")
      --storage-db-file string   db file location (default "/Users/piglei/.lbssh.db")
      --version                  display version info

If you want to use a different SSH_BIN location, you could also try settings up LBSSH_SSH_BIN=/your/ssh/binary environment variable.

Future plan

lbssh is a simple tool that aims for simplifing the process of finding and logging into remote servers. It is best suit for a limited system when tools like "fzf" can not be used. I will add more features to make it better.

  • Auto-prompt for scp file
  • Highlight search result
  • Add customize fields

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL