Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

How to realize SSH remote access connection by building java web server with raspberry pie

Shulou Source: shulou.com Published: 2022-06-01 22:57:04 09月20日 Update

Editor to share with you how to build a raspberry pie java web server to achieve SSH remote access connection, I hope you will learn something after reading this article, let's discuss it together!

I. ssh remote connection

After the raspberry pie installation system is successful, the default is to start SSH. We need to know the ip address of our raspberry pie. (if you must connect to a network device such as a router)

Ifconfigeth0 Link encap:Ethernet HWaddr b8:27:eb:7f:b3:83 inet addr:192.168.0.25 Bcast:192.168.0.255 Mask:255.255.255.0

You can see here that our IP address is 192.168.0.25. Of course, our IP address is dynamically assigned and may change at any time.

So we need to set it to static IP. Generally, the dynamically allocated IP is an IP that is not occupied by other devices, so we directly set this IP to static IP.

Vi / etc/network/interfacesauto lo iface lo inet loopback iface eth0 inet static address 192.168.0.25 netmask 255.255.255.0 gateway 192.168.0.1 allow-hotplug wlan0.

Restart network services

Service networking restart

This allows us to use the SSH client for remote access.

The putty I use here is one of the smallest SSH remote connection tools.

Enter the IP address we just set, and 22 is the default port for SSH. Click Open.

Enter the root username and password and you can log in remotely to access the raspberry pie.

II. Vnc remote connection

Because this series is done in command-line mode, the connection to VNC is not covered for the time being. In fact, it is to install a service on the raspberry pie and a client on the remote computer.

After reading this article, I believe you have a certain understanding of "Raspberry pie build java web server how to achieve SSH remote access connection". If you want to know more about it, welcome to follow the industry information channel, thank you for reading!

Tags: Raspberry service address server top dynamic customer client article network device static allocation input compact success that is premise command done Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno vpn Linux Redmi Microsoft macOS