Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Tue 21 Oct 2014, 12:49
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Unsorted
Any one got sshd for puppy
Moderators: deshlab, Flash, GuestToo, Ian, JohnMurga, Lobster
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
Page 1 of 2 Posts_count   Goto page: 1, 2 Next
Author Message
DrOwl

Joined: 24 May 2007
Posts: 19

PostPosted: Wed 30 Jul 2008, 08:25    Post_subject:  Any one got sshd for puppy  

Questions in to the topic...

Im looking for a sshd for puppy 4 has any one build one already?
Back to top
View user's profile Send_private_message 
alienjeff


Joined: 08 Jul 2006
Posts: 2291
Location: Winsted, CT - USA

PostPosted: Wed 30 Jul 2008, 10:07    Post_subject:  

puppylinux.ca's search feature is your friend:

http://puppylinux.ca/tpp/Grafpup/packages/2.xx/sshd-4.4p1.tar.gz
http://puppylinux.ca/tpp/ttuuxxx/Libs/codecs/vsshdsd.dll

_________________
hangout: ##b0rked on irc.freenode.net
diversion: http://alienjeff.net - visit The Fringe
quote: "The foundation of authority is based upon the consent of the people." - Thomas Hooker


Edited_time_total
Back to top
View user's profile Send_private_message 
big_bass

Joined: 13 Aug 2007
Posts: 1747

PostPosted: Wed 30 Jul 2008, 10:07    Post_subject: Re: Any one got sshd for puppy
Sub_title: 1016 KB 07/21/2008 05:49:00 PM
 

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/OpenSSH/portable/openssh-5.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

Edited_time_total
Back to top
View user's profile Send_private_message 
DrOwl

Joined: 24 May 2007
Posts: 19

PostPosted: Thu 31 Jul 2008, 12:27    Post_subject:  

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/)
Back to top
View user's profile Send_private_message 
big_bass

Joined: 13 Aug 2007
Posts: 1747

PostPosted: Thu 31 Jul 2008, 14:55    Post_subject:  

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 Very Happy
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/OpenSSH/portable/openssh-5.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
Back to top
View user's profile Send_private_message 
DrOwl

Joined: 24 May 2007
Posts: 19

PostPosted: Fri 01 Aug 2008, 05:41    Post_subject:  

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/applications/dot-pets/applicationsdot-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.
Back to top
View user's profile Send_private_message 
DrOwl

Joined: 24 May 2007
Posts: 19

PostPosted: Fri 01 Aug 2008, 12:56    Post_subject:  

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?
Back to top
View user's profile Send_private_message 
sideburns

Joined: 27 Aug 2008
Posts: 56
Location: Freedonia

PostPosted: Thu 18 Sep 2008, 17:34    Post_subject:  

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
Back to top
View user's profile Send_private_message Visit_website 
nickt

Joined: 23 Sep 2008
Posts: 1

PostPosted: Tue 23 Sep 2008, 10:35    Post_subject:  

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! Smile

I had one minor glitch. When I tried to start sshd I got the error
Code:
Privilege separation user sshd does not exist


I solved this by creating the sshd user as follows:
Code:
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.
Back to top
View user's profile Send_private_message 
growler


Joined: 24 Mar 2008
Posts: 209
Location: Kapiti - New Zealand

PostPosted: Sat 18 Oct 2008, 23:03    Post_subject: repackaged Bigbass's OpenSSH5.1  

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!
Back to top
View user's profile Send_private_message 
brucehohl

Joined: 07 Jun 2007
Posts: 58
Location: Ohio

PostPosted: Sun 02 Nov 2008, 08:21    Post_subject:  

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
Back to top
View user's profile Send_private_message 
big_bass

Joined: 13 Aug 2007
Posts: 1747

PostPosted: Mon 03 Nov 2008, 10:59    Post_subject:  

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



Quote:
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/OpenSSH/portable/openssh-5.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
Back to top
View user's profile Send_private_message 
eponyn


Joined: 24 Jul 2006
Posts: 31

PostPosted: Fri 11 Sep 2009, 14:05    Post_subject: problems setting up ssh  

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
Back to top
View user's profile Send_private_message 
tdurbin

Joined: 04 Feb 2010
Posts: 2
Location: Merrillville, IN

PostPosted: Thu 04 Feb 2010, 17:46    Post_subject:  

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)
Back to top
View user's profile Send_private_message 
rfxcasey

Joined: 14 Jan 2010
Posts: 16

PostPosted: Tue 16 Jul 2013, 00:28    Post_subject:  

Quote:
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.
Back to top
View user's profile Send_private_message 
Display_posts:   Sort by:   
Page 1 of 2 Posts_count   Goto page: 1, 2 Next
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Unsorted
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0983s ][ Queries: 12 (0.0052s) ][ GZIP on ]