Hello guys, I'm trying to set up a raspberry pi 4. My setup is headless. I don't set up a wireless lan connection.
When I connect the lan cable between my laptop and the raspberry pi I try to open ssh with putty, and it couldn't find the host
null
A cross cable is required for such a connection.
KUTCHINI
It is a cross cable, I already made a connection, but since then I couldn't do anymore, so I loaded a new os and tried again, it's not working
null
Hostname and co entered correctly?
Have you tried SSH via the console?
null
SSH also switched on in the imager?
KUTCHINI
Yes I tried [email protected] and raspberrypi.local at putty, both don't seem to work.ssh enabled at imager
KUTCHINI
Thank you for trying to help btw
null
Have you tried SSH via the console?
KUTCHINI
havent tired yet, how do i do this?
KUTCHINI
currently download a new OS, imager 1.8.3, rpi4, bookworm 64bit with desktop.
hostname: matanpi.local
username: pi
password:
no wireless LAN
SSH ON in the imager
should I add a ssh file in the SD card?
null
This will cause problems, as far as I know bookworm is not optimized for Pi 4.
No, but try an SSH connection via the console/terminal instead of PuTTY.
could not resolve hostname matanpi. no such host is known.
only green led at the rpi4. is it fine?
null
Only green LED on the Pi? No red one?
Hmm strange, maybe it would be better to connect the Pi to LAN instead of directly to the laptop. I don't know how it works with IP without DHCP. I haven't tried that yet.
KUTCHINI
ok so I have a PC connceted to LAN. I connected the rpi4 to LAN too.
now I guess I need to ssh via my PC
KUTCHINI
Btw, both leds are on now
KUTCHINI
cant ssh it
null
Did you just reconnect the cables or restart the Pi?
KUTCHINI
I restart the Pi and connected it with ethernet cable to the router
null
Can you look into the router, if so see if the Pi appears there.
KUTCHINI
No, sadly I cant connect to it because I dont remember the username and password, but I can look with Advanced IP Scanner
KUTCHINI
Cant find any product with raspberry as the manufacture
null
I don't know of any router that displays manufacture...
Unplug the Pi, see which IPs are left and then plug it back in. Then you can see which IP is added.
How did you just set it up and have already forgotten your name and password?
KUTCHINI
I was trying few days so set it up. and suddenly I typed in putty [email protected] and it works. went to sleep, saw the raspberrypi with only red led. and couldnt enter it via ssh again...
KUTCHINI
well, I see the Pi at the network with IP 192.168.1.172
KUTCHINI
when I try ssh 'IP'
-connect to host 'IP' port 22: Connection timed out
KUTCHINI
OH thats new:
KUTCHINI
The authenticity of host '192.168.1.172 (192.168.1.172)' can't be established.
ED25519 key fingerprint is SHA256:ea+RMquFXO8zRSU+TFjEgLt+5JUh6lkguPTl78pqRvA.
This key is not known by any other names
Are you sure you want to continue connecting (yes/no/[fingerprint])?
null
Yes
SSH always requires
ssh username@hostname
Or
ssh username@ip
KUTCHINI
well, I enterd the password and then it sayed - Connection closed by 192.168.1.172 port 22
null
How exactly did you establish the connection now?
KUTCHINI
i typed in the CMD 'ssh 192.168.1.172'
KUTCHINI
then it asked my yes no or finger print. I sayed yes
null
SSH always requires
ssh username@hostname
Or
ssh username@ip
ssh: connect to host 192.168.1.172 port 22: Connection timed out
null
How long has it been running? The system takes a few minutes to install.
KUTCHINI
around 5 minutes
null
ssh matan@pitry
?
KUTCHINI
ssh: Could not resolve hostname pitry: No such host is known.
KUTCHINI
well I reconnected the Pi to the network and now he ask again ye/no/fingerprint
KUTCHINI
and i'm in!
KUTCHINI
Thank you! I guess i need vnc now
null
VNC does not work with headless! VNC is for GUI installations.
KUTCHINI
why not? VNC is just connecting to the PI and visualizing the desktop
null
Headless = No Desktop!
But you can try PuTTY again.
KUTCHINI
But I installed rpi with desktop
null
At first they said headless... That's why I assumed that now...
null
Yes then vcn works, but no idea how to set it up now. I only work headless.
KUTCHINI
Yes by headless I meant not monitor, sorry 😛
Anyways, Much thank you sir !
KUTCHINI
I restart the Pi and now only red LED is on, what does it indicate?
null
That the Pi has nothing to do that would cause the green one to light up.
As long as it can be reached via ssh or vcn, it is irrelevant whether the green one is lit or not.
null
By the way, with Linux headless always means without GUI. So be careful when using this word.