Skip to main content

chibi_sshd

https://img.shields.io/pypi/v/chibi_sshd.svg Documentation Status

package for handling config files of ssh like sshd_config and authorized_keys

Install

pip install chibi-fstab

Usage

cat > /etc/ssh/ssh_config << 'endmsg'
AuthorizedKeysFile .ssh/authorized_keys
PasswordAuthentication yes
ChallengeResponseAuthentication no
UsePAM yes
PrintMotd no
UseDNS no
Subsystem sftp  /usr/lib/ssh/sftp-server
AllowUsers Misuzu
endmsg
from chibi_sshd import Chibi_sshd_conf, Chibi_authorized_keys
from chibi.file import Chibi_path

default_file = = Chibi_sshd_conf.default
assert default_file.path == '/etc/ssh/sshd_config'
config = default_file.read()
assert isinstance( config.PasswordAuthentication, bool )
assert config.PasswordAuthentication
config.PasswordAuthentication = False
default_file.write( config )
assert "PasswordAuthentication no" in default_file

authorized_keys = Chibi_authorized_keys(
        '/home/Misuzu/.ssh/authorized_keys' )
id_rss_pub = Chibi_path(
        '/home/Misuzu/.ssh/id_rss.pub' ).open().read()
if id_rss_pub not in authorized_keys:
        authorized_keys.append( id_rss_pub )
assert id_rss_pub in authorized_keys:

History

1.1.0 ( 2026-03-23 )

  • se cambio el comportamiento para que AllowUsers se parse como lista y si se serializa una cadena la maneja como lista de un elemento

1.0.0 ( 2026-03-22 )

  • se agrega clase de file para las configuracion de sshd

  • se agrega clase de file para las llaves authorizadas de los usuarios

0.0.1 ( 2026-03-22 )

  • First release on PyPI.

Metadata

Release files for chibi-sshd 1.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for chibi-sshd 1.1.0
File Size Uploaded Provenance
chibi_sshd-1.1.0.tar.gz 9.1 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for chibi-sshd 1.1.0
File Interpreter ABI Platform
chibi_sshd-1.1.0-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 13.6 kB

Release files / chibi_sshd-1.1.0.tar.gz

Download URL chibi_sshd-1.1.0.tar.gz
Size 9.1 kB
Tags Source
SHA-256 checksum
How to use checksums
424e5364163fdd1acb7319b1155b233fcd49fbf3929877b9deeb103830814419
BLAKE2b-256 checksum
How to use checksums
cf60686a80acef557fee8b66d51a9a30ffb2b7514767241b40ae4a7d7865b8bc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.3

Release files / chibi_sshd-1.1.0-py2.py3-none-any.whl

Download URL chibi_sshd-1.1.0-py2.py3-none-any.whl
Size 4.5 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
7a7065110de973df6bdc327121c6a61e671f636b662110394cde7c894e60eb0d
BLAKE2b-256 checksum
How to use checksums
ccc050ed922a1052b4aab3f3ec37fb7bac72276ed88b04c22bb1affee44bab6a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.3

Security for chibi-sshd 1.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page