SSH problems with Pi4 device
SSH problems with Pi4 device
Hi there. I'm setting up a website on my Pi4 B with 4GB RAM and using SSH to manage my BeamMP server. The issue is that SSH bypasses the normal file paths and can't access the ServerConfig.toml file needed for authentication. Without the authkey it fails to start the server. Someone might know how to fix this or help me run the GUI on the server side instead of just seeing it in the terminal. Any advice would be greatly appreciated. Thanks.
It seems you're unsure about what you're asking, possibly referring to BeamMP. Are you checking if a client on your PC connects via SSH using tools like PuTTY or MobaXTerm? If so, could you share any details or screenshots of the connection settings?
I used PuTTY and MobaXTerm on my main PC, and they connected successfully. Working from the server also succeeded, including on the Pi. It seems the SSH command is the issue. I’m using sshpass to handle passwords, which might be causing problems. On the Pi, I can run the script directly in a terminal and navigate to the server folder to execute it. For the BeamMP client, I run it from my PC and the server’s executable file. Instead of opening the .exe myself, I want friends on my site to click a button to start the server when needed. Here’s the script that runs when the button is pressed: #!/bin/bash # password and target='pass' target='[email protected]' filelocation='C:\\Users\\the big fella\\Desktop\\BeamMP\\BeamMP-server.exe' sshpass -p "$password" ssh "$target" "cd /d $(dirname "$filelocation") && cmd /c "$filelocation"'