org.cloudhoist:ssh

Pallet - parent pom

License

License

GroupId

GroupId

org.cloudhoist
ArtifactId

ArtifactId

ssh
Last Version

Last Version

0.7.0-beta.1
Release Date

Release Date

Type

Type

jar
Description

Description

Pallet - parent pom
Source Code Management

Source Code Management

https://github.com/pallet/ssh-crate

Download ssh

How to add to project

<!-- https://jarcasting.com/artifacts/org.cloudhoist/ssh/ -->
<dependency>
    <groupId>org.cloudhoist</groupId>
    <artifactId>ssh</artifactId>
    <version>0.7.0-beta.1</version>
</dependency>
// https://jarcasting.com/artifacts/org.cloudhoist/ssh/
implementation 'org.cloudhoist:ssh:0.7.0-beta.1'
// https://jarcasting.com/artifacts/org.cloudhoist/ssh/
implementation ("org.cloudhoist:ssh:0.7.0-beta.1")
'org.cloudhoist:ssh:jar:0.7.0-beta.1'
<dependency org="org.cloudhoist" name="ssh" rev="0.7.0-beta.1">
  <artifact name="ssh" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.cloudhoist', module='ssh', version='0.7.0-beta.1')
)
libraryDependencies += "org.cloudhoist" % "ssh" % "0.7.0-beta.1"
[org.cloudhoist/ssh "0.7.0-beta.1"]

Dependencies

compile (4)

Group / Artifact Type Version
org.cloudhoist : iptables jar 0.7.0-beta.1
org.cloudhoist : nagios jar 0.7.0-beta.1
org.clojure : clojure jar 1.2.1
org.cloudhoist : pallet jar 0.7.1

test (1)

Group / Artifact Type Version
org.cloudhoist : pallet-crates-test jar 0.7.1

Project Modules

There are no modules declared in this project.

Repository · Issues · API docs · Annotated source · Release Notes

A pallet crate to install and configure ssh.

Dependency Information

:dependencies [[com.palletops/ssh-crate "0.8.0-SNAPSHOT"]]

Releases

Pallet Crate Version Repo GroupId
0.8.0-RC.1 0.8.0-SNAPSHOT clojars com.palletops Release Notes Source

Usage

The ssh crate provides a server-spec function that returns a server-spec. This server spec will install and run the ssh server (not the dashboard). You pass a map of options to configure ssh. The :config value should be a form that will be output as the ssh configuration.

The server-spec provides an easy way of using the crate functions, and you can use the following crate functions directly if you need to.

The settings function provides a plan function that should be called in the :settings phase. The function puts the configuration options into the pallet session, where they can be found by the other crate functions, or by other crates wanting to interact with the ssh server. The settings are made up of a :master key, with a value as a sequence of maps, each specifying a daemon as specified in master.cnf.

The :supervision key in the settings allows running ssh under :runit, :upstart or :nohup.

The install function is responsible for actually installing ssh. At present installation from tarball url is the only supported method. Installation from deb or rpm url would be nice to add, as these are now available from the ssh site.

The configure function writes the ssh configuration file, using the form passed to the :config key in the settings function.

The run function starts the ssh server.

Live test on vmfest

For example, to run the live test on VMFest, using Ubuntu 12.04:

lein with-profile +vmfest pallet up --selectors ubuntu-12-04 --phases install,configure,test
lein with-profile +vmfest pallet down --selectors ubuntu-12-04

License

Copyright (C) 2012, 2013 Hugo Duncan

Distributed under the Eclipse Public License.

org.cloudhoist

pallet

Versions

Version
0.7.0-beta.1
0.5.0
0.4.3
0.4.2
0.4.1
0.4.0
0.4.0-beta-1