I'm trying to set up a web server at home using a dedicated PC with Ubuntu Server. I've got a static IP from my ISP and I've installed OpenSSH, but I'm unable to connect from my Windows 11 PC. I've configured the router and firewall but no luck with Apache either. Any suggestions would be greatly appreciated!
3 Answers
You might want to check if you're using your public static IP when trying to connect from your Windows PC. Always start with the local IP address first. If your server isn’t accessible via its LAN IP, then there’s an issue that needs addressing before you think about port forwarding. Also, using a command like 'ssh [email protected]' is the way to connect. Make sure your SSH service is up and running on Ubuntu.
First, make sure you're connecting to the local IP address of your server, which should look something like 192.168.X.X. You need to test the connection within your local network before trying to access it externally. If that works, then check your router settings. Also, ensure that the SSH service is actually running on your server. You can verify this by running `sudo systemctl status sshd`. Don't forget to allow SSH through the firewall using 'sudo ufw allow 22'.
Checking the basics can help a lot! Try connecting to your server from another device on the same network. If that's not working, confirm the server's firewall settings and ensure that SSH is allowed. If you have access to a web browser, you might want to check if Apache is set up correctly by trying to access it via the server's IP address in the browser again. And remember, nothing should be configured for external access until you get the local setup working.
Related Questions
How To Get Your Domain Unblocked From Facebook
How To Find A String In a Directory of Files Using Linux