Skip to content

Portable userland SSH server configuration. 🧳

Notifications You must be signed in to change notification settings

valeriangalliat/sshd-on-the-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sshd on the go

Portable userland SSH server configuration. 🧳

Inspired by this blog post.

Overview

Sometimes you want to access a host via SSH but there's no SSH server configured on the system. And maybe we don't have root access (or don't want to setup a "proper" SSH server as root).

This simple configuration allows to run a SSH server on an unprivileged port, that allows login with a single user (the one running the server), either via SSH keys or password.

Usage

git clone https://github.com/valeriangalliat/sshd-on-the-go.git
cd sshd-on-the-go

# Setup with SSH key
make setup-with-key
# Then, add your public key to the `authorized_keys` file

# Alternatively, setup with password
make setup-with-password

make start
# Profit 🎉

Typical output of make start:

Listening on 192.168.0.42:2222

    Example: ssh -p 2222 you@192.168.0.42

/usr/sbin/sshd -f sshd_config -D

About

Portable userland SSH server configuration. 🧳

Resources

Stars

Watchers

Forks