Giter Club home page Giter Club logo

distkeys's Introduction

Distkeys

Distkeys distributes a list of SSH public keys to a list of servers. It reaches servers behind a firewall as well.

Furthermore it executes a command or a script on a list of servers.

Distkeys is a ruby script which requires:

  • Ruby ;)
  • Net::SSH v2, debian package ruby-net-ssh (Squeeze and older: libnet-ssh2-ruby)
  • Net::SSH::Gateway, debian package ruby-net-ssh-gateway (Squeeze and older: libnet-ssh-gateway-ruby)
  • Net::SFTP v2, debian package ruby-net-sftp (Squeeze and older: libnet-sftp2-ruby)
  • Termios, debian package ruby-termios (Squeeze and older: libtermios-ruby)
  • SCP

Distkeys can also use SFTP, when you remove the occurences of ":via => :scp". This is not configurable via option yet.

Read more in our blog (in german):

Distkeys als Open Source

VCS

Distkeys is hosted at:

https://www.teamix.org/projects/distkeys

https://github.com/teamix/distkeys

The git repository is prepared to handle debian package builds via git-buildpackage. It has the following branches:

  • master: This is were changes to the Debian packages go.
  • upstream: This is were upstream changes go.
  • pristine-tar: This would be for release tarballs if any.

SSH Configuration

Using the -F command line option, you may specify an alternative per-user SSH configuration file which will be used instead of the default ~/.ssh/config (see ssh(1)'s -F command line option for details).

For example, given the following ~/.ssh/distkeys.config:

Host *
	ForwardAgent yes
	Compression yes
	StrictHostKeyChecking no
	IdentityFile ~/.ssh/tmx_rsa

Then, distkeys -F ~/.ssh/distkeys.config -h <hostlist> <action> will cause Distkeys to enable agent forwarding and compression, disable strict host key checking and using ~/.ssh/tmx_rsa as SSH identity file.

See the ssh_config(5) manpage for details about available configuration options.

Known Issues

Uninitialized contant Net::SFTP::Session:StringIO in Net::STFP v2 < 2.0.5

There is an error in Net::SFTP v2 prior to 2.0.5 which needs to be added manually:

If you get:

/usr/[...]/lib/net/sftp/session.rb:123:in `download!': uninitialized constant Net::SFTP::Session::StringIO (NameError) 

add

require 'stringio'

to the top of the session.rb file mentioned in the exception message.

For further information about this error, see:

ruby net-sftp uninitialized constant

distkeys's People

Contributors

tokkee avatar

Stargazers

Nick Thomas avatar

Watchers

mc avatar  avatar Sebastian avatar James Cloos avatar Oliver Kett avatar Simon Lauger avatar

Forkers

warrior1724

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.