Need an sshd_config file for use on LAN in Bionic32: Worked Around: Dropbear

Issues and / or general discussion relating to Puppy

Moderator: Forum moderators

Post Reply
User avatar
vtpup
Posts: 745
Joined: Sat Aug 15, 2020 2:34 pm
Location: Republic of Vermont
Has thanked: 198 times
Been thanked: 171 times
Contact:

Need an sshd_config file for use on LAN in Bionic32: Worked Around: Dropbear

Post by vtpup »

Hi I installed openssh from the Bionic32 repository to a desktop machine, but the installer didn't add an sshd_config file into /etc/ssh/ . So I need a suitable file to work with Bionic32 openssh server.

It should allow root access by my laptop on my LAN. I don't need more than that.

I did find a sample default config file version in /usr/share/openssh. I tried un-commenting what seemed the appropriate lines, and copying it to /etc/ssh/ but that was guesswork. When I test presently I get on the client:

Code: Select all

root# ssh root@192.168.1.13
ssh_exchange_identification: read: Connection reset by peer

I added my laptop's IP address in the server's hosts-allow file, and for testing purposes temporarily dropped the Puppy firewalls, but still get the above message, so am assuming it's an sshd_config set-up issue.

I do re-boot between changes.

Any help appreciated.

Attached is the un-edited original sample config file (.txt file extension added so it could be posted here):

Attachments
sshd_config.txt
(3.19 KiB) Downloaded 53 times
Last edited by vtpup on Thu Aug 11, 2022 11:12 pm, edited 2 times in total.

HP Envy Laptop 17t-cr100
Fossapup F-96 CE rev 4
Huge kernel: huge-6.1.8-fossapup64

My homemade foam boat:
www.youtube.com/watch?v=4sDubB0-REg

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

Re: Need an sshd_config file for use on LAN in Bionic32

Post by rockedge »

@vtpup have you checked the configurations in the /etc/hosts.allow and /etc/hosts.deny files?

Also in your sshd_config, please try to file comment out the line:

Code: Select all

# override default of no subsystems
Subsystem	sftp	/usr/lib/openssh/sftp-server

to:

Code: Select all

# override default of no subsystems
# Subsystem	sftp	/usr/lib/openssh/sftp-server
User avatar
vtpup
Posts: 745
Joined: Sat Aug 15, 2020 2:34 pm
Location: Republic of Vermont
Has thanked: 198 times
Been thanked: 171 times
Contact:

Re: Need an sshd_config file for use on LAN in Bionic32

Post by vtpup »

Thanks Rockedge, yes re. host files -- mentioned also above that I added my laptop's IP address to hosts-allow on the server.

Also, okay, will do the changes you mention....

HP Envy Laptop 17t-cr100
Fossapup F-96 CE rev 4
Huge kernel: huge-6.1.8-fossapup64

My homemade foam boat:
www.youtube.com/watch?v=4sDubB0-REg

User avatar
bigpup
Moderator
Posts: 6983
Joined: Tue Jul 14, 2020 11:19 pm
Location: Earth, South Eastern U.S.
Has thanked: 903 times
Been thanked: 1522 times

Re: Need an sshd_config file for use on LAN in Bionic32

Post by bigpup »

I may be showing my lack of understanding about this stuff.
I do not use it.

Have you tried to use Ssh-gui program that is in the Applications menu -> Internet?

When I did a search in PPM it said openssh was already installed.

The things you do not tell us, are usually the clue to fixing the problem.
When I was a kid, I wanted to be older.
This is not what I expected :o

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

Re: Need an sshd_config file for use on LAN in Bionic32

Post by rockedge »

how are you starting and stopping the ssh server daemon between changes to the config file? Rebooting?

Have you tried out the Dropbear ssh server PET for Bionic32?

Dropbear is really easy to set up and I use it a lot with Bionic's

Tip: To run the Dropbear SSH server, create some keys (in /etc/dropbear) with ->

Code: Select all

set_dropbear_keys

then start the server and you're ready for remote connections with X11 forwarding ->

Code: Select all

dropbear
User avatar
vtpup
Posts: 745
Joined: Sat Aug 15, 2020 2:34 pm
Location: Republic of Vermont
Has thanked: 198 times
Been thanked: 171 times
Contact:

Re: Need an sshd_config file for use on LAN in Bionic32

Post by vtpup »

Thanks Rockedgere procedure for testing:

I added my laptop's IP address in the server's hosts-allow file, and for testing purposes temporarily dropped the Puppy firewalls, but still get the above message, so am assuming it's an sshd_config set-up issue.

I do re-boot between changes.

I've heard of Dropbear but didn't see s .pet in the Bionic 32 Puppy installer. Can you give an a link to the .pet? thx!

HP Envy Laptop 17t-cr100
Fossapup F-96 CE rev 4
Huge kernel: huge-6.1.8-fossapup64

My homemade foam boat:
www.youtube.com/watch?v=4sDubB0-REg

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

Re: Need an sshd_config file for use on LAN in Bionic32

Post by rockedge »

@vtpup here is a brand newly compiled on Bionic32 a copy of Dropbear and a script to make the keys.
dropbear-2022.82_i686.pet

install then open a terminal:

Code: Select all

set_dropbear_keys
dropbear

that should be it. Go to another machine and attempt a SSH session.
the keys are in /etc/dropbear

Let me know how it goes!

User avatar
vtpup
Posts: 745
Joined: Sat Aug 15, 2020 2:34 pm
Location: Republic of Vermont
Has thanked: 198 times
Been thanked: 171 times
Contact:

Re: Need an sshd_config file for use on LAN in Bionic32

Post by vtpup »

Works Rockedge! Thank you kindly! :thumbup:

HP Envy Laptop 17t-cr100
Fossapup F-96 CE rev 4
Huge kernel: huge-6.1.8-fossapup64

My homemade foam boat:
www.youtube.com/watch?v=4sDubB0-REg

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

Re: Need an sshd_config file for use on LAN in Bionic32: Worked Around: Dropbear

Post by rockedge »

@vtpup I made a mistake compiling dropbear-2022-82 and forgot to enable X11 forwarding!
If X11 Forwarding is not working uninstall and download the fixed version and re-install. The dropbear-2019 is okay and has X11 Forwarding enabled.

So I compiled it again with all the components and uploaded it to replace the first version.

Any downloads now will retrieve the correct version.
dropbear-2022.82_i686.pet

User avatar
vtpup
Posts: 745
Joined: Sat Aug 15, 2020 2:34 pm
Location: Republic of Vermont
Has thanked: 198 times
Been thanked: 171 times
Contact:

Re: Need an sshd_config file for use on LAN in Bionic32: Worked Around: Dropbear

Post by vtpup »

Thanks Rockedge....looks like I used the 2019 version.

HP Envy Laptop 17t-cr100
Fossapup F-96 CE rev 4
Huge kernel: huge-6.1.8-fossapup64

My homemade foam boat:
www.youtube.com/watch?v=4sDubB0-REg

Post Reply

Return to “Users”