Skip to main content

A GPT-powered sysadmin.

Project description

Sysaidmin

Sysaidmin is a GPT-powered sysadmin for your machine. You can ask it to solve a problem, and it will run commands on your system (with your permission) to debug what's going on.

Installation

Using pipx (recommended):

$ pipx install sysaidmin

Using pip (less recommended, but still good):

$ pip install sysaidmin

Sample run:

$ sysaidmin "Whenever I try to SSH to localhost on port 22, it doesn't work. Can you fix it?"

==============================
Running command: ssh localhost
==============================
Press any key to continue, Ctrl-C to terminate...

ssh: connect to host localhost port 22: Connection refused


==============================
Running command: systemctl status sshd
==============================
Press any key to continue, Ctrl-C to terminate...

● ssh.service - OpenBSD Secure Shell server
     Loaded: loaded (/lib/systemd/system/ssh.service; enabled; vendor preset: enabled)
     Active: active (running) since Sun 2023-11-26 18:40:45 EET; 25s ago
       Docs: man:sshd(8)
             man:sshd_config(5)
    Process: 92469 ExecStartPre=/usr/sbin/sshd -t (code=exited, status=0/SUCCESS)
   Main PID: 92471 (sshd)
      Tasks: 1 (limit: 18824)
     Memory: 1.7M
        CPU: 9ms
     CGroup: /system.slice/ssh.service
             └─92471 "sshd: /usr/sbin/sshd -D [listener] 0 of 10-100 startups"

Νοε 26 18:40:45 zeus systemd[1]: Starting OpenBSD Secure Shell server...
Νοε 26 18:40:45 zeus sshd[92471]: Server listening on 0.0.0.0 port 8122.
Νοε 26 18:40:45 zeus sshd[92471]: Server listening on :: port 8122.
Νοε 26 18:40:45 zeus systemd[1]: Started OpenBSD Secure Shell server.


==============================
It appears that your SSH server is running, but it is not listening on the default SSH
port 22. Instead, it is listening on port 8122 for both IPv4 and IPv6 connections, as
indicated by the line "Server listening on 0.0.0.0 port 8122" and "Server listening on
:: port 8122."

To connect via SSH to localhost, you need to specify port 8122. You can do that by using
the following command:

```bash
ssh -p 8122 localhost

Try running this command, and it should allow you to connect to the SSH server running on your local machine.

Your response: No, please change the port

============================== Running command: sudo sed -i 's/#Port 22/Port 22/' /etc/ssh/sshd_config && sudo systemctl restart ssh

Press any key to continue, Ctrl-C to terminate... ^C


Project details


Download files

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

Source Distribution

sysaidmin-0.1.1.tar.gz (15.1 kB view details)

Uploaded Source

Built Distribution

sysaidmin-0.1.1-py3-none-any.whl (15.9 kB view details)

Uploaded Python 3

File details

Details for the file sysaidmin-0.1.1.tar.gz.

File metadata

  • Download URL: sysaidmin-0.1.1.tar.gz
  • Upload date:
  • Size: 15.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for sysaidmin-0.1.1.tar.gz
Algorithm Hash digest
SHA256 b9489b33cd7d1366e73d488b4f41e688b062200126adda188c169ed221f5b533
MD5 5457642416c8356fd7914481d49cff4e
BLAKE2b-256 a6200dc46e6bb892133d5796408323c80297b39e9b2cc040fac0f9645e0d3562

See more details on using hashes here.

File details

Details for the file sysaidmin-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: sysaidmin-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 15.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for sysaidmin-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b6295de95443019b954bae5aa03e6e7c22f7871216f2a336bfd76db9125963d6
MD5 cd933b422664d75ae677d75b9c4cf8d2
BLAKE2b-256 d9318c49ee0864fdfec3a61123dfa7358fe3d879df1761e7dcdb8a1e94a2c8ac

See more details on using hashes here.

Supported by

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