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 Sat 19 Apr 2014, 00:53
All times are UTC - 4
 Forum index » House Training » Users ( For the regulars )
Boot puppy with sshd and root password from Live CD
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [3 Posts]  
Author Message
genell

Joined: 03 Jan 2008
Posts: 2

PostPosted: Thu 03 Jan 2008, 16:56    Post subject:  Boot puppy with sshd and root password from Live CD  

Hi all! I've been playing with puppies for a while, and thought I'd train my own juvenile canine for a special purpose.
I have a server at home running gentoo, and during an update lately I changed something in the startup routines, so it get's stuck before starting sshd.

I only have a laptop otherwise, and the server has no screen nor keyboard, so I thought I would customize Puppy .iso that contains a password for root and that starts sshd at boot.

I've installed ssh_sftp.pup and played around with the 'Remaster...' function, but it seems the password for root is not tranferred to the new .iso.

Does anybody have any advice?

Thanx

/genell
Back to top
View user's profile Send private message 
Pizzasgood


Joined: 04 May 2005
Posts: 6270
Location: Knoxville, TN, USA

PostPosted: Thu 03 Jan 2008, 18:39    Post subject:  

I don't use the remaster script (Unleashed is more suited for what I do), so I might be wrong. But I think there should be a stage where it has created a copy of the filesystem but hasn't compressed it into the pup_xxx.sfs file yet. At that stage you should be able to put in any files you want and have them included. So if that's correct, you can use passwd to set your root password, then when you reach that stage of the script, just replace the /etc/shadow file it's using with the one in your normal filesystem.
_________________
Between depriving a man of one hour from his life and depriving him of his life there exists only a difference of degree. --Muad'Dib

Back to top
View user's profile Send private message Visit poster's website 
genell

Joined: 03 Jan 2008
Posts: 2

PostPosted: Fri 04 Jan 2008, 09:52    Post subject:  

As far as I understand it, the script allows me to add stuff to /tmp/etc and /tmp/root before adding them to the pup_xxx.sfs file. I tried brutally doing 'cp -r /etc /tmp/' but when booting that in the server the password still didn't work...

The sshd_setup.sh script that came with the sshd-sftp.pup package generates key pairs for the sshd server. Maybe I can export a key and use that when logging in?

I haven't used key pairs much before, so I'm a bit unsure how to do it...

regards,

/genell
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [3 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Users ( For the regulars )
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0385s ][ Queries: 11 (0.0036s) ][ GZIP on ]