Page 1 of 1

How to install SSH server on puppy?

Posted: Wed Dec 08, 2021 11:58 pm
by brevalo

Hello,

Could you please help me how to install SSH server on puppy?

Thank you in advance.


Re: SSH server on puppy

Posted: Thu Dec 09, 2021 2:17 am
by Trapster

Re: How to install SSH server on puppy?

Posted: Thu Dec 09, 2021 10:20 am
by brevalo

I've created bash file and done everything according the instruction. (It ran and also generated dss and rsa keys) but still not working.

P.S. In any case disabled firewall.

How to check if dropbear listens to the port 22?

Here is a video what I've done: https://www.loom.com/share/da7b65b0cce1 ... 0264bd8554


Re: How to install SSH server on puppy?

Posted: Thu Dec 09, 2021 12:23 pm
by Trapster

The script you created should be labeled "dropbear_keys" or something similar. Not "dropbear".
It is only a script to create the keys.
Dropbear is the program that got installed with the .pet file.

After you run the "dropbear_keys", run "dropbear" in the console to start the server,

make_dropbear_keys.sh
CODE: SELECT ALL

Code: Select all

#!/bin/sh
#
# make_dropbear_keys.sh
#
mkdir /etc/dropbear
cd /etc/dropbear
RSA_KEYFILE=/etc/dropbear/dropbear_rsa_host_key
DSS_KEYFILE=/etc/dropbear/dropbear_dss_host_key
dropbearkey -t dss -f $DSS_KEYFILE
dropbearkey -t rsa -f $RSA_KEYFILE

run the script and in a terminal start dropbear
CODE: SELECT ALL

Code: Select all

dropbear

[/quote]


Re: How to install SSH server on puppy?

Posted: Thu Dec 09, 2021 1:03 pm
by brevalo

When I type "dropbear" it says:

bash: dropbear: command nor found


Re: How to install SSH server on puppy?

Posted: Thu Dec 09, 2021 1:04 pm
by rockedge

@brevalo What happens if you open a terminal and try?

Code: Select all

dropbear

Is Dropbear starting at all?


Re: How to install SSH server on puppy?

Posted: Thu Dec 09, 2021 1:29 pm
by brevalo

It says whaty I've written:

bash: dropbear: command nor found


Re: How to install SSH server on puppy?

Posted: Thu Dec 09, 2021 1:39 pm
by snoring_cat

Rockedge, can he just install dropbear from Puppy Package Manager? I don't know what is different with the PET referenced in the link.


Re: How to install SSH server on puppy?

Posted: Thu Dec 09, 2021 4:06 pm
by rockedge

Yes I see now you typed it. Okay I have downloaded it again and extracted the PET to see what is going on.
the dropbear binary should be in /usr/local/sbin if it is not you can extract the PET file and copy the dropbear binary to that location. Perhaps /usr/local/sbin is not in $PATH ??

EDIT: I found that /usr/local/sbin is NOT in the $PATH on my test system.
@brevalo So in a terminal try

Code: Select all

/usr/local/sbin/dropbear

should just return to the command prompt without any output if successful

@snoring_cat at the time I compiled the package and created the PET, it was not offered in the PPM

Tested the PET install in Fossapup64 and works. But either adjust the $PATH to include /usr/local/sbin or use

Code: Select all

export PATH=/usr/local/sbin:$PATH

or symlink it to (or copy) /usr/local/bin