Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 5880

General discussion • Re: Problem when SSH using windows and Raspberry Pi 4

$
0
0
Some questions
4) I connect a keyboard and a monitor to the raspberry and get the IP address of the raspberry using hostname -i
How is the RPI getting an IP address? Do you configure WIFI in the set-up in PI Imager?

hostname -i for me only returns the local loopback address of 127.0.0.1. To get all IP addresses assigned run hostname --all-ip-addresses
1) If I try to ping raspberrypi.local, then ping is successful
This would be as expected if they were on the same network.
3) If I try to ssh pi@raspberrypi.local, then it is successful, but after a few minutes the connection is interrupted
Have you tried disconnecting the Ethernet cable between the PC and RPI and see if SSH still works?
Thank you for reading, hope someone has the solution, since this time I'm not really able to find a way!
If your desire is to SSH into the RPI from the PC, without an external network connection on the RPI, then look at this article https://carbonstone.blogspot.com/2014/0 ... ernet.html. However, this assumes no direct network connection for the RPI.

Statistics: Posted by DS256 — Thu Apr 11, 2024 9:25 pm



Viewing all articles
Browse latest Browse all 5880

Trending Articles