Coder Social home page Coder Social logo

autossh-init's Introduction

[]: {{{1

File        : README.md
Maintainer  : Felix C. Stegerman <[email protected]>
Date        : 2013-11-09

Copyright   : Copyright (C) 2013  Felix C. Stegerman
Version     : 0.0.1

[]: }}}1

Description

[]: {{{1

autossh-init - AutoSSH init script

[]: }}}1

Usage

[]: {{{1

local & remote:

$ adduser --system --group --shell /bin/false \
  --home /var/lib/autossh --disabled-password autossh

local:

autossh$ ssh-keygen
# <<PUBKEY>> below is the contents of ~/.ssh/id_rsa.pub here

remote:

autossh$ vim ~/.ssh/authorized_keys
# on a single line, add:
#   command="/bin/false",no-agent-forwarding,no-pty,
#   no-X11-forwarding,permitopen="host1:port1",
#   permitopen="host2:port2" <<PUBKEY>>

local:

$ cp -i autossh.init /etc/init.d/autossh
$ update-rc.d autossh defaults

$ cp -i autossh.default /etc/default/autossh
$ vim /etc/default/autossh

autossh$ ssh autossh@remote FAIL  # confirm fingerprint
# alternatively -- and less securely! -- you can disable
# StrictHostKeyChecking in the autossh_opts

$ service autossh start

[]: }}}1

TODO

  • improve output?
  • tests?

License

[]: {{{1

GPLv2 [1].

[]: }}}1

References

[]: {{{1

[1] GNU General Public License, version 2 --- http://www.opensource.org/licenses/GPL-2.0

[]: }}}1

[]: ! ( vim: set tw=70 sw=2 sts=2 et fdm=marker : )

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.