Bionic pup 8 and SSH problems

New to Puppy and have questions? Start here

Moderator: Forum moderators

Post Reply
haywirepc
Posts: 18
Joined: Wed Aug 05, 2020 2:31 pm
Has thanked: 2 times

Bionic pup 8 and SSH problems

Post by haywirepc »

Hello,

I am trying to get ssh working with two machines running bionic pup 8.

If I try to connect to other linux machines on the network (A raspberry pi and a linux mint pc) SSH and x redirect works fine on both the puppy machines. In other words they both work fine as client. I am thinking something is wrong with them accepting ssh connections as host.

if I try to connect to either puppy machine from the puppy machines or others I get timeouts, I am using openssh and everything appears to be installed and working. I'm not sure how to verify if the port 22 is working on the puppy linux machines. Does anyone know what the default port is for bionic puppy linux or know how I can get them to allow ssh connections?

Thanks in advance for any help. I have been googling and trying to fix this issue for about 2 full days now. Nothing seems to work.
User avatar
rockedge
Site Admin
Posts: 6556
Joined: Mon Dec 02, 2019 1:38 am
Location: Connecticut,U.S.A.
Has thanked: 2760 times
Been thanked: 2636 times
Contact:

Re: Bionic pup 8 and SSH problems

Post by rockedge »

The best results I get is by using Dropbear as the SSH server in Bionic.
here are links to them as a PET file:
http://rockedge.org/kernels/data/PET/Bi ... 8-i686.pet
http://rockedge.org/kernels/data/PET/Bi ... x86_64.pet

Install them and create the proper keys for drop box by
creating a directory /etc/dropbear
enter the directory and create a script in it and run it :

Code: Select all

#!/bin/sh
 RSA_KEYFILE=/etc/dropbear/dropbear_rsa_host_key
 DSS_KEYFILE=/etc/dropbear/dropbear_dss_host_key
dropbearkey -t rsa -f $RSA_KEYFILE
dropbearkey -t dss -f $DSS_KEYFILE
start dropbear in a terminal:

Code: Select all

dropbear
then use an SSH client like pUTTY or the built in client in Bionicpup to connect to the dropbear server computer.
haywirepc
Posts: 18
Joined: Wed Aug 05, 2020 2:31 pm
Has thanked: 2 times

Re: Bionic pup 8 and SSH problems

Post by haywirepc »

I would prefer to use openssh as it works on all my other machines.

I'm not sure I understand how to make keys. Can't I just use passwords?
User avatar
rockedge
Site Admin
Posts: 6556
Joined: Mon Dec 02, 2019 1:38 am
Location: Connecticut,U.S.A.
Has thanked: 2760 times
Been thanked: 2636 times
Contact:

Re: Bionic pup 8 and SSH problems

Post by rockedge »

the keys are for the SSH encryption when the 2 machines communicate. You will of course login with a password which for example, if I was to SSH log into Puppy Linux Bionic64 I would have user = root and password = woofwoof. The keys are for internal work you will not have to deal with. The password here is the default one and you would use your configured one.

to make the keys create open a terminal and type these commands :

Code: Select all

mkdir -p /etc/dropbear
cd /etc/dropbear
dropbearkey -t dss -f /etc/dropbear/dropbear_dss_host_key
dropbearkey -t rsa -f /etc/dropbear/dropbear_rsa_host_key
then start dropbear with

Code: Select all

dropbear
on a second machine use an SSH client like Menu->Internet->Ssh-gui secure remote login
or from the command line.

screenshot of the SSH session connected between 2 machines. The Dropbear SSH server is on a WeeDog64-Arch and the client side is Puppy Linux Bionic64-CE. Running is PCmanFM file manager from WeeDog64-Arch.
Screenshot(3).png
Screenshot(3).png (171.52 KiB) Viewed 1097 times
Dropbear runs just as great on Puppy Linux as it does on WeeDog
User avatar
Jafadmin
Posts: 385
Joined: Tue Aug 04, 2020 4:51 pm
Has thanked: 68 times
Been thanked: 85 times

Re: Bionic pup 8 and SSH problems

Post by Jafadmin »

The first thing is to confirm that SSH server is running on the machines you are trying to connect to.

On each of those machines type this at a command line: > ssh localhost

If the reply says, "connection refused" then SSH server is not running on that machine. You will need to start ssh server.
haywirepc
Posts: 18
Joined: Wed Aug 05, 2020 2:31 pm
Has thanked: 2 times

Re: Bionic pup 8 and SSH problems

Post by haywirepc »

root# ssh localhost
ssh: connect to host localhost port 22: Connection refused
root#

Looks like the ssh server is running but port 22 is blocked. Can someone help me unblock the ports so I can make this work?

I am trying to use ssh and x redirect on my main workstation across the network to run programs and use available resources from the other computers on the network. This is something I've always wanted to do or figure out. Please help me get this going.
ndujoe1
Posts: 35
Joined: Thu Jul 16, 2020 7:25 pm

Re: Bionic pup 8 and SSH problems

Post by ndujoe1 »

Right click your firewall icon on the desktop tray bar and open firewall setup. From the menu you can toggle various customized configurations.
Attachments
firewall-1.jpg
firewall-1.jpg (57.12 KiB) Viewed 1041 times
Post Reply

Return to “Beginners Help”