moshix / searchserver

A terminal search server (telnet | SSH versions)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

A Terminal-based Search Server

The telnet.py server is, well... for telnet clients.

Install PyPDF2 with:

pip3 install PyPDF2

Start it with python3 telnet.py --port 1023

The SSH server in Python

You will need to pip install paramiko.

The SSH server requires you to set up a key like this:

  ssh-keygen -t rsa -f server_key -N ''


Then, start the server. Connect to the server using an SSH client (e.g., ssh username@localhost -p 8023). Any username and password will be accepted for simplicity.

The SSH server in Go

The SSH server requires you to set up a key like this:

  ssh-keygen -t rsa -f server_key -N ''


To build do:

  go mod init ssh
  go mod tidy
  go build ssh.go

How to make it work with searchable content

Create a subdirectory FILES/ and put all the text files you want to search in that subdirectory.

Moshix, May, 2024 Munich, Germany

About

A terminal search server (telnet | SSH versions)


Languages

Language:Python 100.0%