Score:0

Headless ssh-access to Ubuntu in RPI4

mx flag

I've run the rpi imager to burn the image into an SD card, and configured netplan to connect to wifi on start up.

Checked using arp -a and the address never showed, but I accessed the router and the rpi is there.

After trying to ssh it, arp -a shows the address (any thoughts?).

But the problem is, it says 'connection refused'. Exact log:

ssh: connect to host 192.168.1.19 port 22: Connection refused

How can I edit the files so that it either starts the ssh service automatically at startup (I can't tell if it is running or not atm), or to know how to access it.

I don't have a monitor around.

ar flag
Is this the Ubuntu "Core" version? If so, did you upload the public key to the Ubuntu server as it says in [the tutorial](https://ubuntu.com/tutorials/how-to-install-ubuntu-core-on-raspberry-pi#1-overview)?
Minsky avatar
mx flag
@user68186 I don't know what is the diff bw ubuntu server and core, but it is the standalone server
us flag
ARP cache is populated only when a paket was sent to or received from target.
Minsky avatar
mx flag
@Virsacer awesome, thanks for that. So I should ping all devices in the lan first?
ar flag
You may need to install `openssh-server`. Please edit the question and indicate if it is installed and if you did any configuration of the sshd server.
Minsky avatar
mx flag
I didn't access the raspberry for the simple reason that I am running it headless (no monitor). It runs an ubuntu 20.04 server so I presume `ssh` is installed, I could take a look at the burned image. @user68186
ar flag
Please update the question once you check. Also make sure whether you have installed the standard server or the "Core" version, as ssh works slightly differently in server and Core.
us flag
@Minsky I dont see a reason, why you would need all mac adresses pre-cached, but if you want that, pinging does the trick
Minsky avatar
mx flag
How do you get another lan device's ip otherwise? @Virsacer
Minsky avatar
mx flag
@user68186 ubuntu 20.04 server and it has ssh installed but not sure how to check if it is enabled
us flag
@Minsky How do you get the IP to ping it in the first place?
Minsky avatar
mx flag
I would ping the with a broadcast destination IP @Virsacer
us flag
@Minsky You should look up the IP with DNS or in the DHCP-server. `nmap` can also be used to check which IPs are "alive"
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.