Hello again,
ok, it seems things are starting to work.
I do like this to achieve a stable connection:
0. Make sure OpenSSH client is installed in the PC
1. Power Rpi
2. Connect Rpi to windows PC using ethernet cable
3. Enable internet connection sharing (good link here, but many others are present in the web: https://medium.com/@jrcharney/connect-y ... 64e1e68922)
3. Open Windows Command Prompt and run ping -4 -n 1 raspberrypi.local to get the IPv4 address of the Rapsberry Pi. If the command fails, it means no valid IPv4 address has been assigned to Rpi (I could also do the same check running arp -a in command line and looking at the ethernet interface section)
4. Now I can SSH Rpi
Why was it not working before? I'm not really sure I understood what happened. Maybe I mixed up the sequence ofenabling ICS and connecting the RPi, or maybe something else happened that I do not know.
Thank you all for your replies and for making me become sure of the necessary steps and checks to be able to obtain and verify a stable SSH connection.
A last question: should I disable ICS when I do not need to connect the Raspberry?
ok, it seems things are starting to work.
I do like this to achieve a stable connection:
0. Make sure OpenSSH client is installed in the PC
1. Power Rpi
2. Connect Rpi to windows PC using ethernet cable
3. Enable internet connection sharing (good link here, but many others are present in the web: https://medium.com/@jrcharney/connect-y ... 64e1e68922)
3. Open Windows Command Prompt and run ping -4 -n 1 raspberrypi.local to get the IPv4 address of the Rapsberry Pi. If the command fails, it means no valid IPv4 address has been assigned to Rpi (I could also do the same check running arp -a in command line and looking at the ethernet interface section)
4. Now I can SSH Rpi
Why was it not working before? I'm not really sure I understood what happened. Maybe I mixed up the sequence ofenabling ICS and connecting the RPi, or maybe something else happened that I do not know.
Thank you all for your replies and for making me become sure of the necessary steps and checks to be able to obtain and verify a stable SSH connection.
A last question: should I disable ICS when I do not need to connect the Raspberry?
Statistics: Posted by gev_u — Tue Apr 16, 2024 9:51 pm