Page 1 of 1

NO SSH on raspberry pi

Posted: Monday 01 February 2021 21:36
by Nodri
Hi guys,

I'm trying to insall SSH on my raspberry pi running domoticz. I've followed the steps on https://www.domoticz.com/wiki/Native_se ... ts_Encrypt but i'm running into problems.

The first one is that letscenrypt doenst run on my Rapi.
I get this error:
Your system is not supported by certbot-auto anymore.
Certbot will no longer receive updates.
Please visit https://certbot.eff.org/ to check for other alternatives.
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Certbot doesn't know how to automatically configure the web server on this syste m. However, it can still get a certificate for you. Please run "letsencrypt-auto certonly" to do so. You'll need to manually configure your web server to use th e resulting certificate.


I've tried that and it didn't work. Been to the certbot website and did the commands there. No joy i'm afraid.
It does a lot of things but now i can't access my domoticz anymore from my browser.
Also apparantly i don't have the permission for fullchain.pem

I would like to rollback everything so i can at least access domoitcz from my web browser.
Ports are open in my router.

Please help

Re: NO SSH on raspberry pi

Posted: Monday 01 February 2021 21:43
by Bernd
Installing SSH on your RPi is done with a tool within Raspi-config.
"Sudo apt raspi-config" brings you in the tool full of settings, including setting SSH.

You have to connect a monitor and keyboard to your RPi for this .....

Re: NO SSH on raspberry pi

Posted: Monday 01 February 2021 21:48
by FireWizard
Hi,

Have a look to the second post in this thread: viewtopic.php?f=6&t=34774&p=262757&hili ... ot#p262757

Regards

Re: NO SSH on raspberry pi

Posted: Monday 01 February 2021 22:04
by Nodri
Hello,

I tried to have a look into the live directory but i get a permission denied reply from the raspberry
Mag het ook in het nederlands?

I can't get access to these files. I went to superuser mode and i can see the files but when i run sudo cat it can't find the file.

Re: NO SSH on raspberry pi

Posted: Tuesday 02 February 2021 0:13
by waaren
Nodri wrote: Monday 01 February 2021 22:04 Mag het ook in het nederlands?
Sorry but No.

This is an international (and moderated) forum and we want all members to benefit from all posts.
Google translate is easy to use and if you use it, everyone else reading your posts do not have to do it for you.

Re: NO SSH on raspberry pi

Posted: Tuesday 02 February 2021 0:15
by HvdW
Try PiVPN with Wireguard.
Easy, simple, safe, encrypted.

Re: NO SSH on raspberry pi

Posted: Tuesday 02 February 2021 17:05
by erem
i fail to see the relation between letsencrypt and ssh.
Since the title of the post deals with ssh, lets address that first.

if your pi is running headless and ssh does not connect, do the following
place an empty file called ssh in the boot directory of the SD card. (the boot dir is the only partition readable to windows on the sd card)
then boot from that sd card
that enables the ssh server.

in case you have a monitor and keyboard connected, the command to configure the pi is sudo raspi-config
option 3, then option P2 configures ssh

check if ssh now works using any ssh client (putty?) and report back.

Re: NO SSH on raspberry pi

Posted: Tuesday 02 February 2021 23:18
by Nodri
Hello Erem,

So done that.
Access now via Putty, but that has always been the case i think.

Re: NO SSH on raspberry pi

Posted: Wednesday 03 February 2021 12:01
by erem
ok, so ssh works
i am no letsencrypt expert, so i am afraid i cannot help there. Sorry
But if your goal is to access domoticz from outside your home, i use a vpn between my phone and my router for that. HvdW suggested that as well.
you may want to change the post title to something more descriptive of your problem, like "Certbot auto deprecated, how to update certificate now?"