demo_lanpong.mp4
- Create a new account using
ssh [email protected] -p 2222
- Login using created account
ssh 'username'@lanpong.hopto.me -p 2222
- This project assumes you're using a Unix-like system (Linux, macOS, WSL, etc.)
python3
in your terminal should point to apython>=3.10
installation.pip
shuold be installed on your python version.
Upgrade pip
to the latest version:
python3 -m pip install --upgrade pip
Install poetry
:
curl -sSL https://install.python-poetry.org | python3 -
You will be instructed to add poetry
to your PATH
variable.
Make sure to do this, then restart your terminal.
From within the project directory (the one containing this file), install the project dependencies, and the project itself:
poetry install
Finally (again, from within the project directory), run the following command:
$ python -m lanpong
This will immediatly start the LANPONG SSH server. You should see the following output:
Listening for connection on 0.0.0.0:2222
You can now connect to the server using the following command:
$ ssh new@<server-ip> -p 2222
Once you create a new user, you can join as that user using the following command:
$ ssh <username>@<server-ip> -p 2222
lanpong.hopto.me