Page 1 of 1

Any one got sshd for puppy

Posted: Wed 30 Jul 2008, 12:25
by DrOwl
Questions in to the topic...

Im looking for a sshd for puppy 4 has any one build one already?

Posted: Wed 30 Jul 2008, 14:07
by alienjeff

Re: Any one got sshd for puppy

Posted: Wed 30 Jul 2008, 14:07
by big_bass
DrOwl wrote:Questions in to the topic...

Im looking for a sshd for puppy 4 has any one build one already?
hey DrOwl

just made you one test drive this 1016 KB 07/21/2008 05:49:00 PM
download with wget the server has been buggy lately

wget -c http://ttuuxxx.com/bigbass/openssh-5.1.pet


More info on the package
http://www.openssh.com/faq.html


extra info if you want to keep updated
I got it from here
ftp://ftp.openbsd.org/pub/OpenBSD/OpenS ... 1p1.tar.gz
just if you wanted to know :wink:
let me know how it goes



this is what gets auto installed with the pet
/install/doinst.sh
/usr/dop1/ChangeLog
/usr/dop1/TODO
/usr/dop1/README
/usr/dop1/LICENCE
/usr/dop1/INSTALL
/usr/dop1/CREDITS
/usr/bin/ssh-keyscan
/usr/bin/ssh
/usr/bin/ssh-keygen
/usr/bin/ssh-agent
/usr/bin/scp
/usr/bin/ssh-add
/usr/bin/sftp
/usr/sbin/sshd
/usr/man/man5/moduli.5.gz
/usr/man/man5/sshd_config.5.gz
/usr/man/man5/ssh_config.5.gz
/usr/man/man8/sshd.8.gz
/usr/man/man8/sftp-server.8.gz
/usr/man/man8/ssh-keysign.8.gz
/usr/man/man1/ssh-keygen.1.gz
/usr/man/man1/ssh.1.gz
/usr/man/man1/ssh-agent.1.gz
/usr/man/man1/ssh-add.1.gz
/usr/man/man1/scp.1.gz
/usr/man/man1/sftp.1.gz
/usr/man/man1/ssh-keyscan.1.gz
/usr/etc/moduli
/usr/etc/sshd_config
/usr/etc/ssh_config
/usr/libexec/sftp-server
/usr/libexec/ssh-keysign
/usr/share/Ssh.bin


big_bass

Posted: Thu 31 Jul 2008, 16:27
by DrOwl
Thank you both, most cool indeed

I used Big_Bass's new package...

just a quick install of the pet, then i generated some host keys with

# ssh-keygen -t rsa -f /usr/etc/ssh_host_rsa_key
# ssh-keygen -t dsa -f /usr/etc/ssh_host_dsa_key
# ssh-keygen -t rsa1 -f /usr/etc/ssh_host_key

and modded the config /usr/etc/sshd_config so root can not log directly in (not that im paranoid)

`PermitRootLogin no`
while i was there i set up a banner
`Banner /etc/motd`

+ created my self a local non root user with user add.

mkdir /home
'adduser -h /home/[localusername] [localusername]


I had a problem su'ing to root so i had to add SUID

chmod 4777 /bin/su


and then set up the firwall to limmit who can ssh to my box.




I have'nt looked at the openssh tar yet, did you have to compile it?
+ how come "/usr/etc" is that puppy thing, or just general linux (me being a Solaris dude im use it sshd config being in /etc/ssh/)

Posted: Thu 31 Jul 2008, 18:55
by big_bass
DrOwl wrote:T
I have'nt looked at the openssh tar yet, did you have to compile it?
+ how come "/usr/etc" is that puppy thing, or just general linux (me being a Solaris dude im use it sshd config being in /etc/ssh/)
Hey DrOwl

great to hear your progress setting it up :D
if you need to modify anything else update this post please so it can be useful for the next guy :wink:

you did a great job listing what you did ..you can make a how to ( hint)


this link below is the original source code if there is an update you can check here
ftp://ftp.openbsd.org/pub/OpenBSD/OpenS ... 1p1.tar.gz


I already compiled it ( the above ftp link its only a reference ) for you then converted it into a pet package
for puppy .One of the common configure options is --prefix=/usr
you will notice some other options used below to compile this package


this an out put of a source compiling script
SOURCE_NAME='openssh-5.1p1.tar.gz'
NAME='openssh'
VERSION='5.1p1'
# ARCH='i486'
BUILD='1'
PRE_FIX='usr'
# Any extra options go here
# EXTRA_CONFIGS=''
# STD_FLAGS='-O2 -march=i486 -mtune=i686'

if you want me to do anything to the pet let me know


big_bass

Posted: Fri 01 Aug 2008, 09:41
by DrOwl
Ok i made a wiki page, buggered up the title though, hopefully some one will fix that.

Please add / cleanup anything thing on the wiki page =)

http://www.puppylinux.org/wiki/applicat ... t-petssshd

thanks for the info...

one thing that might be nice to add is a rc.d script, ill have a look at making one, and post it here.

Posted: Fri 01 Aug 2008, 16:56
by DrOwl
oh also i just noticed:

Jul 31 17:09:33 (none) auth.info sshd[23976]: lastlog_filetype: Couldn't stat /var/log/lastlog: No such file or directory


so i ran 'touch /var/log/lastlog`

restarted sshd `kill -HUP [sshd's PID]`
and lastlog now has data in it

+

Aug 1 17:52:00 (none) auth.info sshd[12327]: Accepted password for [user] from 1.1.1.1 port 61112 ssh2
Aug 1 17:52:00 (none) auth.err sshd[12398]: error: open /dev/tty failed - could not set controlling tty: Permission denied


not sure how to fix this, but its home time so ill look next time, any one got an idea?

Posted: Thu 18 Sep 2008, 21:34
by sideburns
I don't need to ssh into my laptop with Puppy, I need to ssh from it to my desktop, with Fedora 9, and I'd rather use RSA authentication instead of password. Can I get the keygen program on its own, and if so, what parameter do I give it to get what I need? If all else fails, I can always do the keygen on my desktop, but that lacks elegance.

Posted: Tue 23 Sep 2008, 14:35
by nickt
DrOwl wrote:Ok i made a wiki page, buggered up the title though, hopefully some one will fix that.

Please add / cleanup anything thing on the wiki page =)
.
I've also just installed the sshd package from big_bass. Followed these notes and the wiki page. Thanks guys! :)

I had one minor glitch. When I tried to start sshd I got the error

Code: Select all

Privilege separation user sshd does not exist
I solved this by creating the sshd user as follows:

Code: Select all

addgroup sshd
adduser -H -G sshd -h /var/empty -s /bin/false -D sshd
Note: I am using a hard disk install of the NOP 4.0 r1 Puplet, so this may not be an issue for regular Puppy installs.

repackaged Bigbass's OpenSSH5.1

Posted: Sun 19 Oct 2008, 03:03
by growler
I have repackaged bigbass's (slackware) openssh-5.1 to do the install automatically with a pinstall.sh script in the PET that:

1. adds the sshd user - so the "Separated privileges" issue doesn't crop up
2. An automatic boot script loads the sshd server on each boot - and after installation
3. Only spot is allowed to login to the sshd server - root is specifically disallowed
4. Opens terminal screens to change the passwords for root and for spot at installation time

I put it up at

ftp.servage.net

user:puppy
pwd:puppylinux

under pet-packages

I have not logged into the wiki to update it - obviously this takes a bit of the fun out of the installation!

Posted: Sun 02 Nov 2008, 12:21
by brucehohl
growler,
I installed your version of openssh-5.1.pet on Puppy 4.1 but sshd did not start due to this error: "Missing privilege separation directory: /var/empty". After adding /var/empty everything worked perfectly.
Thanks, BH

Posted: Mon 03 Nov 2008, 14:59
by big_bass
brucehohl wrote:growler,
I installed your version of openssh-5.1.pet on Puppy 4.1 but sshd did not start due to this error: "Missing privilege separation directory: /var/empty". After adding /var/empty everything worked perfectly.
Thanks, BH
I have repackaged bigbass's (slackware) openssh-5.1 to do the install automatically with a pinstall.sh script in the PET that:
well yes I complied it as a slackware package from this source (link below) first then I made it a puppy package :wink: check more info on my above post

this link below is the original source code if there is an update you can check here
ftp://ftp.openbsd.org/pub/OpenBSD/OpenS ... 1p1.tar.gz


well lets get this bundled completely
I will upload it to puppylinux.ca with any fixes that got added
I have to check the pet against the orginal first and see what was edited


keep this thread updated with any other edits that you make thanks for posting

P.S growler great job on the setup script I wanted to read the xdialog box it flashed too quickly just a simple ok button added so you can close the box after reading


but better atm to paste your message here to know what to expect

The sshd daemon will be started automatically on each boot of puppy.\n
For security reasons the root user cannot log on with ssh.\n The spot user has been
set up as the only user who can login with ssh.\n
Once logged on spot can su to perform any administration functions.
You can modify this behaviour by editing /usr/etc/sshd_config\n
The password for root needs to be changed so you can su to root
and spot's password also needs to be set.\n
A terminal window will open for you to set root's password.
\n then another window will open for you to enter spot's password too




UPDATED with the install script from growler
http://www.puppylinux.ca/tpp/big_bass/openssh-5.1.pet
big_bass

problems setting up ssh

Posted: Fri 11 Sep 2009, 18:05
by eponyn
I was following the instructions of Dr.Owl to setup ssh but I am finding a couple of problems. I am running puppy Firehydrant (based on 3.0) in one PC that I want to use as a server file to backup the files of two other other computers. I installed the open ssh package and generated the host keys.
When I tried to create a user this is what I'm getting. I get an error when creating a user.

#mkdir /home
# adduser -h /home/eponin eponin
passwd: unknown user eponin
# adduser -h /home/eponin eponin
adduser: eponin: group name already in use
# passwd eponin
passwd: unknown user eponin

I've tried it with several different usernames and it will always give me the error. Any ideas on what I may be doing wrong?

Thanks

Posted: Thu 04 Feb 2010, 21:46
by tdurbin
If anyone is interested, I have compiled openssh-5.3p1 with gui for single startup or to add to boot (based off of the x11vnc-0.9.8 gui). You can find it here http://www.nwitechsupport.com/download/48/. The gui will request a username and a password change, create a system account and a corresponding home directory.

:arrow: Edited to reflect the updated pet location - compatible with Puppy Linux 4.3.1 as the previous utilized terminal (NOP standard) instead of xterm, also fixed the missing icon issue (apparently gif format doesn't play nice with the menu)

Posted: Tue 16 Jul 2013, 04:28
by rfxcasey
If anyone is interested, I have compiled openssh-5.3p1 with gui for single startup or to add to boot (based off of the x11vnc-0.9.8 gui). You can find it here http://www.nwitechsupport.com/download/48/.
Does anyone have access to this file anymore, or is there something better out there now? The link is apparently broken.

Posted: Tue 16 Jul 2013, 21:28
by RetroTechGuy
rfxcasey wrote:
If anyone is interested, I have compiled openssh-5.3p1 with gui for single startup or to add to boot (based off of the x11vnc-0.9.8 gui). You can find it here http://www.nwitechsupport.com/download/48/.
Does anyone have access to this file anymore, or is there something better out there now? The link is apparently broken.
Many thing can be found through the Wikka site:

http://puppylinux.org/wikka/OpenSSH

Other:

http://puppylinux.org/wikka/CategorySecurity