(First, just want to say I'm kind of a beginner in this topic. Secondly, I'm posting this question in this forum after days of looking for some solution and other related questions with no result. I have not been able to find any code that works for me.)
So I have two Raspberry Pi with ubuntu in both. They will have no internet connection in the final application . I need to access the #1st Pi from the #2nd Pi to run some Python programs. I've found it is possible via SSH.
The problem I'm facing right now is that the #2nd Pi has some buttons connected. What I want is that pressing the external button in the #2nd Pi is reflected on the #1st Pi terminal. (I expect to have two terminals in my screen: the one from the 2nd Pi (main Desktop), and also the ssh terminal from the #1st Pi)
Is it possible to actually do this with no internet connection? I've found some commands using echo and some post using the "tty" system but with no prior knowledge I don't know if they fit my needs.
I hope I find some advice here. Thank you very much to anyone that replies.