Skip to content
grobertson edited this page Jun 20, 2012 · 4 revisions

Using s

s is the dead-simple command line ssh configuration management tool you've always wanted.

https://github.com/grobertson/s/

Features

  • Stores user@host and keypair info by easy to remember name
  • (partial) command line compatibility with ssh, add only one argument to save connection forever
  • List/show existing saved connections
  • Create and install new keypairs on remote system (install remote using password or existing key)
  • Instant install/uninstall with single shell command line (requires wget)
  • Runs almost anywhere (needs only bash and ssh installed. shasum needed for --addkey)

Basics

s attempts to understand ssh command line options (more coming) so adding saved connections is just like connecting via ssh. Compare these command lines and see!

Save a new connection with s

s -i path/to/keyfile user@host.com NewConfigurationName

Connect with ssh

ssh -i path/to/keyfile user@host.com

Generate new keypair, install on remote and save configuration

(Will prompt for password)

s --addkey user@host.com NewConfigurationName

Generate new keypair, install on remote and save configuration

(Use existing keypair to send new public key)

s --addkey -i path/to/keyfile user@host.com NewConfigurationName