Page 1 of 1

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

Posted: Thu Aug 11, 2022 5:29 pm
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):


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

Posted: Thu Aug 11, 2022 6:21 pm
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

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

Posted: Thu Aug 11, 2022 6:24 pm
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....


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

Posted: Thu Aug 11, 2022 6:29 pm
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.


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

Posted: Thu Aug 11, 2022 6:31 pm
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

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

Posted: Thu Aug 11, 2022 6:45 pm
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!


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

Posted: Thu Aug 11, 2022 9:32 pm
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!


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

Posted: Thu Aug 11, 2022 11:11 pm
by vtpup

Works Rockedge! Thank you kindly! :thumbup:


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

Posted: Fri Aug 12, 2022 12:16 am
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


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

Posted: Fri Aug 12, 2022 10:41 pm
by vtpup

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