Skip to content

Latest commit

 

History

28 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Interactive ssh server made in c++23 with Libssh

Currently displays a centered ANSI art image when you connect to the server. By design it does not have any authentication.
You can SSH into the example server

ssh ernests.id.lv

Goal for this is to be used as a base for an interactive ssh application, for example a game. Demo of the server running and displaying the ansi art

Requirements

  • Libssh
  • CMake

How to build

Run make and make build

How to run

To run the ssh server you have to first create a server key (Example of creating one):

ssh-keygen -t rsa -b 2048 -f ssh_host_rsa_key

After you have the key, you can run the build executable in the build folder:

./sshGame 2200 ssh_host_rsa_key 

First argument is the port to run the ssh server on, and the second is the previously generated private key path.

You can then connect to the server with:

ssh -p 2200 0.0.0.0

Or you can ommit the -p if you set the port of the server to 22.
The server will not ask for any authentication and should just display an ANSI art image.

About

Interactive ssh server made in c++23 in Libssh

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages