This project aims to provide a fully functional version of BinaryCoffee accessible through the terminal via SSH.
cargo run-
Change the default SSH port in
/etc/ssh/sshd_config:Port 20
-
Check the firewall settings to allow the new SSH port:
sudo ufw allow 20/tcp sudo ufw reload
Note: Check first if the firewall is enabled with the command
sudo ufw status. -
Restart the SSH service:
sudo systemctl restart sshd && sudo systemctl restart sshThis steps should allow you to connect to your VPS using the new SSH port 20 and free the port 22 to be used by the current project.
-
Redirect the SSH port 22 to the project port (e.g., 2222):
Modify the file
/etc/nginx/nginx.confand add the following code block:stream { server { listen 22; proxy_connect_timeout 5s; proxy_timeout 600s; proxy_pass 127.0.0.1:2222; } }
-
Check the NGINX configuration and restart the service:
# validate nginx configuration sudo nginx -t # restart nginx service sudo systemctl restart nginx
- Render markdown into the terminal
- Add tests to the project