You are not logged in.

#1 2013-02-28 08:28:53

kcy29581
Member
From: CA
Registered: 2004-12-23
Posts: 231

Rescue CD/distribution that enables ssh/telnet on boot?

Hi all,

I am looking for a distribution/live cd that enables ssh/telnet (or something similar) on boot. The reason I need this: I am trying to get data from a broken all-in-one PC (only the monitor appears broken), and do not have access to a monitor.

I have searched google for this, and it looks like this particular livecd may not exist, and that I may have to create my own livecd (something I have never done before...).

I figured I'd ask here first, in case anyone knew of such a livecd.

Thanks


There is no spoon in Arch...

Offline

#2 2013-02-28 08:37:22

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,750

Re: Rescue CD/distribution that enables ssh/telnet on boot?

Can you not pull drive?


Mr Green

Offline

#3 2013-02-28 08:38:06

kcy29581
Member
From: CA
Registered: 2004-12-23
Posts: 231

Re: Rescue CD/distribution that enables ssh/telnet on boot?

I totally forgot to search the wiki, during my google searches... I found https://wiki.archlinux.org/index.php/Building_a_Live_CD which I'll give a shot later too.


There is no spoon in Arch...

Offline

#4 2013-02-28 08:38:49

kcy29581
Member
From: CA
Registered: 2004-12-23
Posts: 231

Re: Rescue CD/distribution that enables ssh/telnet on boot?

Mr Green wrote:

Can you not pull drive?

All I have is a laptop here, so I cannot connect the drive to it.


There is no spoon in Arch...

Offline

#5 2013-02-28 14:34:07

blackout23
Member
Registered: 2011-11-16
Posts: 780

Re: Rescue CD/distribution that enables ssh/telnet on boot?

Why not just use the Arch Live CD/USB? Should not be to hard to install openssh and start it as systemd service. Mount the drive to /mnt connect with other PC. done. Or am I missing something?

Last edited by blackout23 (2013-02-28 14:34:55)

Offline

#6 2013-02-28 18:02:28

kcy29581
Member
From: CA
Registered: 2004-12-23
Posts: 231

Re: Rescue CD/distribution that enables ssh/telnet on boot?

blackout23 wrote:

Why not just use the Arch Live CD/USB? Should not be to hard to install openssh and start it as systemd service. Mount the drive to /mnt connect with other PC. done. Or am I missing something?

- All-in-one pc
- broken monitor
- no access to another monitor


There is no spoon in Arch...

Offline

#7 2013-02-28 23:27:37

alexanderthegre
Member
Registered: 2012-07-29
Posts: 66

Re: Rescue CD/distribution that enables ssh/telnet on boot?

The arch livecd enabled SSH on boot, last I checked.

Offline

#8 2013-03-01 00:15:36

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,412

Re: Rescue CD/distribution that enables ssh/telnet on boot?

You still need to set a password to log in though (I kind of remember having to start the service... its been a bit though).  I think that these commands should not be hard to do blindly.

Offline

#9 2013-03-01 00:54:16

kcy29581
Member
From: CA
Registered: 2004-12-23
Posts: 231

Re: Rescue CD/distribution that enables ssh/telnet on boot?

It does not, it seems. Yes, ssh is there, but you still need to enter commands before it works, so that does not help me at all.


There is no spoon in Arch...

Offline

#10 2013-03-01 01:12:18

dschrute
Member
From: NJ, USA
Registered: 2007-04-09
Posts: 183

Re: Rescue CD/distribution that enables ssh/telnet on boot?

System Rescue CD has sshd enabled by default.  As long as your network card is supported it should do what you need out of the box.

Offline

#11 2013-03-01 03:41:31

kcy29581
Member
From: CA
Registered: 2004-12-23
Posts: 231

Re: Rescue CD/distribution that enables ssh/telnet on boot?

dschrute wrote:

System Rescue CD has sshd enabled by default.  As long as your network card is supported it should do what you need out of the box.

http://www.sysresccd.org/Sysresccd-manu … SSH_Server nope, tried that earlier. Needs a password set ><


There is no spoon in Arch...

Offline

#12 2013-03-01 04:32:24

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,412

Re: Rescue CD/distribution that enables ssh/telnet on boot?

Seriously, I think the easiest situation would be the Arch installer since it drops you into the tty, logged in ready to go.  With other live media, you will end up in a gui, in which case you would need to start a terminal, then issue these commands.  I think that you have figured out above that even if you can get a live media with sshd started by default, you still need a password, which you will have to set.  This being the case, I can't seem to understand why blindly issuing two commands is not a viable option.

How about instead of simply shooting down every suggestion that comes along, why don't you try something!  Besides, this is information that should be attainable with a search engine, so you since no one seems to be able to come up with what you consider a valid answer, you are now simply outsourcing searches.

Offline

#13 2013-03-01 04:45:59

kcy29581
Member
From: CA
Registered: 2004-12-23
Posts: 231

Re: Rescue CD/distribution that enables ssh/telnet on boot?

WonderWoofy wrote:

How about instead of simply shooting down every suggestion that comes along, why don't you try something!  Besides, this is information that should be attainable with a search engine, so you since no one seems to be able to come up with what you consider a valid answer, you are now simply outsourcing searches.

I knew someone would end up saying this.

I stated what I tried, and if someone gives potential incorrect info to someone else that may be reading this forum, I will respond. I was never rude, just stating facts as they are.

I have tried everything I can, and I have asked for further assistance. Any links I may add, are from my original research into the topic.


There is no spoon in Arch...

Offline

#14 2013-03-01 06:18:26

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,412

Re: Rescue CD/distribution that enables ssh/telnet on boot?

I never said you were rude, but I am giving you a viable solution.  It is not like you are going to have to do this over and over again, you simply need access to your headless machine (hopefully just once anyway).

I did exactly what I am proposing to you when I installed Arch on my headless server.  So I know it can be done, and it is probably one of the simplest of solutions... by that I mean you could be moving data off your drive by now.

Insert Archiso and press power button
...give it some time to boot...

# passwd <desired password>
# systemctl start sshd

PROFIT!

Offline

#15 2013-03-01 06:22:50

kcy29581
Member
From: CA
Registered: 2004-12-23
Posts: 231

Re: Rescue CD/distribution that enables ssh/telnet on boot?

WonderWoofy wrote:

I never said you were rude, but I am giving you a viable solution.  It is not like you are going to have to do this over and over again, you simply need access to your headless machine (hopefully just once anyway).

I did exactly what I am proposing to you when I installed Arch on my headless server.  So I know it can be done, and it is probably one of the simplest of solutions... by that I mean you could be moving data off your drive by now.

Insert Archiso and press power button
...give it some time to boot...

# passwd <desired password>
# systemctl start sshd

PROFIT!

I tried this earlier, but it did not seem to work. I'll move the PC downstairs and hook it up straight to the router instead of my current usage of powerline ethernet (seems harder to find the IP with nmap), and try the arch iso again.

The good news is that I know it boots from the CD, from looking at the various lights and listening to the hdd/drive sounds. xD


There is no spoon in Arch...

Offline

#16 2013-03-01 06:36:27

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,412

Re: Rescue CD/distribution that enables ssh/telnet on boot?

You may want to add a

# dhcpcd eth0 

to the end of that then... if dhcpcd is already running it will have no effect anyway.

Edit: On second thought... maybe you might want to do that before running sshd.

Last edited by WonderWoofy (2013-03-01 06:37:30)

Offline

#17 2013-03-01 10:58:48

Tarqi
Member
From: Ixtlan
Registered: 2012-11-27
Posts: 106
Website

Re: Rescue CD/distribution that enables ssh/telnet on boot?

Parted Magic starts sshd on boot. I am not sure if root is allowed to login, but the root password would be "partedmagic" (i believe). Will check this when i'm back home. However, you need to be connected by wire.


Knowing others is wisdom, knowing yourself is enlightenment. ~Lao Tse

Offline

#18 2013-03-05 20:23:16

hawaiicharles
Member
Registered: 2012-12-21
Posts: 71

Re: Rescue CD/distribution that enables ssh/telnet on boot?

kcy29581 wrote:
Mr Green wrote:

Can you not pull drive?

All I have is a laptop here, so I cannot connect the drive to it.

Every computer geek should have one of these in his toolkit.

Sorry to come back to this, but it really seems to me that you're trying to do it the hard way.

Offline

#19 2013-03-14 18:07:27

premax
Member
Registered: 2013-03-14
Posts: 1

Re: Rescue CD/distribution that enables ssh/telnet on boot?

Tarqi wrote:

Parted Magic starts sshd on boot. I am not sure if root is allowed to login, but the root password would be "partedmagic" (i believe). Will check this when i'm back home. However, you need to be connected by wire.

Yes, you are right, just checked. sshd started and password for root account is as you said.

best,

p.

Offline

Board footer

Powered by FluxBB