Any one got sshd for puppy

Stuff that has yet to be sorted into a category.
Post Reply
Message
Author
DrOwl
Posts: 19
Joined: Fri 25 May 2007, 02:13

Any one got sshd for puppy

#1 Post by DrOwl »

Questions in to the topic...

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

User avatar
alienjeff
Posts: 2265
Joined: Sat 08 Jul 2006, 20:19
Location: Winsted, CT - USA

#2 Post by alienjeff »

Last edited by alienjeff on Wed 30 Jul 2008, 14:13, edited 1 time in total.
[size=84][i]hangout:[/i] ##b0rked on irc.freenode.net
[i]diversion:[/i] [url]http://alienjeff.net[/url] - visit The Fringe
[i]quote:[/i] "The foundation of authority is based upon the consent of the people." - Thomas Hooker[/size]

big_bass
Posts: 1740
Joined: Mon 13 Aug 2007, 12:21

Re: Any one got sshd for puppy

#3 Post 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
Last edited by big_bass on Thu 31 Jul 2008, 21:53, edited 1 time in total.

DrOwl
Posts: 19
Joined: Fri 25 May 2007, 02:13

#4 Post 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/)

big_bass
Posts: 1740
Joined: Mon 13 Aug 2007, 12:21

#5 Post 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

DrOwl
Posts: 19
Joined: Fri 25 May 2007, 02:13

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

DrOwl
Posts: 19
Joined: Fri 25 May 2007, 02:13

#7 Post 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?

sideburns
Posts: 56
Joined: Thu 28 Aug 2008, 01:32
Location: Freedonia
Contact:

#8 Post 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.
Registered Linux user #470359

nickt
Posts: 1
Joined: Tue 23 Sep 2008, 14:11

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

User avatar
growler
Posts: 209
Joined: Mon 24 Mar 2008, 04:42
Location: Kapiti - New Zealand

repackaged Bigbass's OpenSSH5.1

#10 Post 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!

brucehohl
Posts: 58
Joined: Thu 07 Jun 2007, 11:47
Location: Ohio

#11 Post 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

big_bass
Posts: 1740
Joined: Mon 13 Aug 2007, 12:21

#12 Post 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

User avatar
eponyn
Posts: 31
Joined: Mon 24 Jul 2006, 08:36

problems setting up ssh

#13 Post 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

tdurbin
Posts: 2
Joined: Thu 04 Feb 2010, 19:11
Location: Merrillville, IN

#14 Post 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)

rfxcasey
Posts: 16
Joined: Thu 14 Jan 2010, 05:26

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

User avatar
RetroTechGuy
Posts: 2947
Joined: Tue 15 Dec 2009, 17:20
Location: USA

#16 Post 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
[url=http://murga-linux.com/puppy/viewtopic.php?t=58615]Add swapfile[/url]
[url=http://wellminded.net63.net/]WellMinded Search[/url]
[url=http://puppylinux.us/psearch.html]PuppyLinux.US Search[/url]

Post Reply