How to install SSH server on puppy?

Issues and / or general discussion relating to Puppy

Moderator: Forum moderators

Post Reply
brevalo
Posts: 4
Joined: Wed Dec 08, 2021 11:53 pm

How to install SSH server on puppy?

Post by brevalo »

Hello,

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

Thank you in advance.

Last edited by Flash on Thu Dec 09, 2021 3:56 am, edited 1 time in total.
Reason: Original title: SSH server on puppy
User avatar
Trapster
Posts: 180
Joined: Sat Aug 01, 2020 7:44 pm
Has thanked: 1 time
Been thanked: 50 times

Re: SSH server on puppy

Post by Trapster »

brevalo
Posts: 4
Joined: Wed Dec 08, 2021 11:53 pm

Re: How to install SSH server on puppy?

Post 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

User avatar
Trapster
Posts: 180
Joined: Sat Aug 01, 2020 7:44 pm
Has thanked: 1 time
Been thanked: 50 times

Re: How to install SSH server on puppy?

Post 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]

Last edited by Trapster on Thu Dec 09, 2021 1:29 pm, edited 1 time in total.
brevalo
Posts: 4
Joined: Wed Dec 08, 2021 11:53 pm

Re: How to install SSH server on puppy?

Post by brevalo »

When I type "dropbear" it says:

bash: dropbear: command nor found

User avatar
rockedge
Site Admin
Posts: 6538
Joined: Mon Dec 02, 2019 1:38 am
Location: Connecticut,U.S.A.
Has thanked: 2745 times
Been thanked: 2619 times
Contact:

Re: How to install SSH server on puppy?

Post by rockedge »

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

Code: Select all

dropbear

Is Dropbear starting at all?

brevalo
Posts: 4
Joined: Wed Dec 08, 2021 11:53 pm

Re: How to install SSH server on puppy?

Post by brevalo »

It says whaty I've written:

bash: dropbear: command nor found

User avatar
snoring_cat
Posts: 206
Joined: Tue Sep 21, 2021 3:40 pm
Location: Earth
Has thanked: 24 times
Been thanked: 46 times

Re: How to install SSH server on puppy?

Post 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.

Meeeooow!

-- substance over noise, since 5 minutes in the future --

User avatar
rockedge
Site Admin
Posts: 6538
Joined: Mon Dec 02, 2019 1:38 am
Location: Connecticut,U.S.A.
Has thanked: 2745 times
Been thanked: 2619 times
Contact:

Re: How to install SSH server on puppy?

Post 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

Post Reply

Return to “Users”