Giter Site home page Giter Site logo

function61 / function22 Goto Github PK

View Code? Open in Web Editor NEW
4.0 1.0 0.0 65 KB

A memory-safe SSH server, focused on listening only on VPN networks such as Tailscale

Home Page: https://function61.com/

License: Apache License 2.0

Shell 0.68% Go 99.32%
ssh ssh-server tailscale

function22's Introduction

Build status Download

A memory-safe SSH server, focused on listening only on VPN networks such as Tailscale.

Features

  • Is tested to work with SCP
  • Integrates well with systemd

Quickstart

Download binary for your architecture. We only support Linux.

  • If you don't have /etc/ssh/ssh_host_ed25519_key (from previous OpenSSH installation perhaps), run $ ./function22 host-key-generate to generate it.
  • Run $ ./function22 install to start on system startup.

Security

These things improve security when compared to default OpenSSH installation:

  • Restricts SSH listening to a VPN interface (like Tailscale), so your SSH server is not reachable directly from public internet.
  • Fully memory safe implementation (Go has native support for SSH protocol).
  • Less features => less attack surface.
    • Only support ed25519 host key

Of course there are security points that OpenSSH is better at, like having had magnitudes of more security-conscious people looking at its source code. It is you who ultimately are responsible for your own security, so please consider all implications. :)

Why authenticate at all?

In theory since Tailscale already has "IP is identity" and network-level access controls are by user / device combos, you wouldn't need to authenticate the user at all.

I.e. IP packets arriving at the SSH server (from VPN IP range) is already a sign that user's end device passes firewall ACLs.

Currently we still do additional auth for layered security. Once we gain more confidence on the code and understand additional attack vectors better, source-IP-restricted access will be considered.

TODO

  • Log all failed connection attempts (even though we have network-level security)
  • Perhaps disable password authentication entirely
  • Perhaps use systemd socket activation? Or is that possible when bound to a specific network interface's IP? Seems possible.
  • Make this a library, so it can be embedded in other projects
  • Investigate OpenSSH security facilities to learn if we can add any security-increasing tricks

function22's People

Contributors

joonas-fi avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

function22's Issues

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.