This is a demo, so the user and password are hardcoded in the code. You can find it in ssh_demo.c file.
Execution
gcc -o main.o main.c ssh_demo.c crypto/rsa.c crypto/diffie_hellman.c -lcrypto -lgmp Generate key pair
./main.o genkey <pubfile> <privfile>For server side
./main.o server <listen_port> <pubfile> <privfile>For example:
./main.o server 2222 pub.pem priv.pemFor client side
./main.o client <server_ip> <server_port> <pubfile> <username> <password> <command>For example:
./main.o client 127.0.0.1 2222 pub.pem testuser testpass ls