SSHD in Parted Magic

Discussions about anything.

Moderators: Patrick Verner, Icecube

SSHD in Parted Magic

Postby sup3rw0rm » Mon Aug 03, 2009 1:49 pm



I've looked all over. How do you start the SSH server in Parted Magic. I was expecting a script in /etc/init.d. I've been spoiled by other distros. :?


sup3rw0rm
 
Posts: 48
Joined: Thu Jun 18, 2009 10:52 am

Re: SSHD in Parted Magic

Postby Patrick Verner » Mon Aug 03, 2009 9:40 pm

sshd

Easy?

Should I generate a host key at boot if one doesn't exist?

Code: Select all
ssh-keygen -t rsa1 -f /etc/ssh/ssh_host_key -N ''
ssh-keygen -t dsa -f /etc/ssh/ssh_host_dsa_key -N ''
ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key -N ''
Last test version of Parted Magic: http://beefdrapes.partedmagic.com
User avatar
Patrick Verner
Site Admin
 
Posts: 880
Joined: Wed Nov 19, 2008 2:27 am
Location: Kaukauna, Wisconsin

Re: SSHD in Parted Magic

Postby sup3rw0rm » Tue Aug 04, 2009 2:04 am

I just tested 4.4 (Aug 3) and noticed "Starting SSHD" during boot up but am unable to connect to it after starting the network. I ran "ps -A |grep sshd" and it returned nothing. Also running "sshd" returns this:

Code: Select all
root@PartedMagic:~# sshd
sshd re-exec requires execution with an absolute path


SSH connectivity on boot up isn't a must, but getting it running should be simple. It'd be helpful to be able to tell an amateur how to do it over the phone so I can get connectivity.
sup3rw0rm
 
Posts: 48
Joined: Thu Jun 18, 2009 10:52 am

Re: SSHD in Parted Magic

Postby Patrick Verner » Tue Aug 04, 2009 2:24 am

oops I forgot about that...

/usr/sbin/sshd

You need to add this to /etc/passwd too:

sshd:x:33:33:sshd:/:/bin/false

The test version that's uploading has these changes and no you shouldn't need to mess with stuff like this. It should "just work".

Thanks for pointing out that it doesn't work. This really helps.
Last test version of Parted Magic: http://beefdrapes.partedmagic.com
User avatar
Patrick Verner
Site Admin
 
Posts: 880
Joined: Wed Nov 19, 2008 2:27 am
Location: Kaukauna, Wisconsin

Re: SSHD in Parted Magic

Postby sup3rw0rm » Tue Aug 04, 2009 2:30 am

Anything to help this project. Waiting for the upload. (90 megs to go).

BTW, please leave the Chat section on the page. I use it to instruct people on what to type in the terminal. Which that shouldn't be as necessary with SSH working, but still useful.
sup3rw0rm
 
Posts: 48
Joined: Thu Jun 18, 2009 10:52 am

Re: SSHD in Parted Magic

Postby sup3rw0rm » Tue Aug 04, 2009 3:03 am

Sweet, it works. If you make documentation for this, be sure to include setting the root password.
sup3rw0rm
 
Posts: 48
Joined: Thu Jun 18, 2009 10:52 am

Re: SSHD in Parted Magic

Postby sup3rw0rm » Thu Jan 28, 2010 12:27 pm

I noticed that sshd isn't running by default anymore (using 4.9). Could this be re-enabled or maybe a short little script added that runs:

Code: Select all
`which sshd`;passwd
sup3rw0rm
 
Posts: 48
Joined: Thu Jun 18, 2009 10:52 am

Re: SSHD in Parted Magic

Postby Patrick Verner » Thu Jan 28, 2010 10:38 pm

It was something I did when I upgraded it. It should work again in the next test version.
Last test version of Parted Magic: http://beefdrapes.partedmagic.com
User avatar
Patrick Verner
Site Admin
 
Posts: 880
Joined: Wed Nov 19, 2008 2:27 am
Location: Kaukauna, Wisconsin

Re: SSHD in Parted Magic

Postby index » Sat Feb 13, 2010 1:53 pm

Hi, is there a default passwort for ssh enabled? I want to do a remote backup for a 'computer-illiterate' and thus will try to enable ssh and vnc (servers) for the USB variant of partedmagic (4.8). But I need to be able to do that completely remotely. Also, how do I preconfigure the network interface? Thanks.

PS: I get a 'connection refused' on ssh port 22. Also, I'm not sure whether the VNC server package actually executes..
index
 
Posts: 1
Joined: Sat Feb 13, 2010 1:42 pm

Re: SSHD in Parted Magic

Postby michelh » Thu Jul 22, 2010 8:15 am

See on parted magic 4.11
What is the preferred (documented) way to access a box running pmagic-4.11 using ssh. ?
I am doing
Code: Select all
#mypc ssh pmagic-host -l root

In order to do this I had to modify /etc/ssh/sshd_config on the pmagic-4.11 box in the following way
Code: Select all
#pmagic-box diff /etc/ssh/sshd_config{.BAK,}

< #PermitEmptyPasswords no
---
> PermitEmptyPasswords yes


There should be an easier way !!!

Question 2: has anyone considered the security impacts, and written some documentation/advice ?
michelh
 
Posts: 1
Joined: Thu Jul 22, 2010 8:01 am

Next

Return to General Discussion

Who is online

Users browsing this forum: No registered users and 2 guests