Git Product home page Git Product logo

freebsd-jailed-sshd's Introduction

freebsd-jailed-sshd

Build Status

This role provides a jailed sshd server. Nothing more.

All incoming ssh connection will be redirected to this jail and if the user is allowed to login again forwarded to the hosts internal ssh server (needs proxy command to be set up - see Vagrantfile within this project for example).

Requirements

This role is intent to be used with a fresh FreeBSD 11.2 installation. There is a Vagrant Box with providers for VirtualBox and EC2 you may use.

Role Variables

sshd_authorized_keys_file

The public key used for user authentication. Will be added to authorized_key file of the user (host/jail). Defaults to vagrants insecure public key.

sshd_jump_host

Set to yes if this jail is used as jump host for the host system. Default: no.

sshd_port

The port the sshd server should listen on. Default: 22.

sshd_user

The user name used to connect via ssh. Default: 'vagrant'.

sshd_gid

The group id the ssh user should belong to. Default: 1001.

sshd_user_home

The ssh user's home directory. Default: /home/{{ sshd_user }}.

sshd_user_shell

The default shell for the ssh user. Default: /bin/sh.

sshd_user_uid

The id for the ssh user. Default: 1001.

Dependencies

Example Playbook

- hosts: all
  become: true

  tasks:
    - import_role:
        name: 'JoergFiedler.freebsd-jail-host'
    - include_role:
        name: 'JoergFiedler.freebsd-jailed-sshd'
      vars:
        jail_net_ip: '10.1.0.10'
        jail_name: 'sshd'
        sshd_jump_host: true

License

BSD

Author Information

Any ideas to improve this project, please open an issue on Github. Thanks.

freebsd-jailed-sshd's People

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

n8fear

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.