Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Installing Gentoo
  • Search

Installing Gentoo over SSH

Having problems with the Gentoo Handbook? If you're still working your way through it, or just need some info before you start your install, this is the place. All other questions go elsewhere.
Post Reply
Advanced search
7 posts • Page 1 of 1
Author
Message
Jerle
n00b
n00b
Posts: 16
Joined: Thu Feb 27, 2003 1:31 am

Installing Gentoo over SSH

  • Quote

Post by Jerle » Thu Feb 27, 2003 1:37 am

I have a pair of servers co-located in New York, and the administator there has no experience with Gentoo. The gentoo LiveCD allows you to SSH, FTP, and do all sorts of outbound connections before you have finished installing the system, but I haven't seen any method of connecting in.

Is it possible to SSH in to a computer that has been booted from a LiveCD? Probably not by default, but if there is some way to rig that it would make things much easier if I could control the install remotely.

Thanks for any help.
Top
dna42
n00b
n00b
User avatar
Posts: 72
Joined: Wed Feb 26, 2003 8:12 pm

  • Quote

Post by dna42 » Thu Feb 27, 2003 2:09 am

as far as i know, as soon as there is a connection to the internet, it is perfectly possible to start the ssh server, which (i guess) can be found on any gentoo live-cd.
in fact, you can tell him the exact steps required to achieve this (i.e. modprobe ....; ifup ....; etc) and continue the installlation as soon as the ssh daemon is running...
p.s: be sure to make a good password before starting an ssh server (with the default settings)
Top
pjp
Administrator
Administrator
User avatar
Posts: 20668
Joined: Tue Apr 16, 2002 10:35 pm

  • Quote

Post by pjp » Thu Feb 27, 2003 3:03 am

Could've sworn I read something about this. If you get it done, please take notes and consider posting them to the Documentation, Tips & Tricks forum.
Quis separabit? Quo animo?
Top
abhishek
Retired Dev
Retired Dev
User avatar
Posts: 393
Joined: Fri Jun 28, 2002 9:14 pm
Location: Los Angeles, CA

  • Quote

Post by abhishek » Thu Feb 27, 2003 11:43 pm

I've done this vefore. all that is nesscary is to do the following after you login

Code: Select all

passwd 
/etc/init.d/sshd start
and it should work.
Top
dberkholz
Retired Dev
Retired Dev
User avatar
Posts: 1008
Joined: Tue Mar 18, 2003 6:51 am
Location: Minneapolis, MN, USA
Contact:
Contact dberkholz
Website

  • Quote

Post by dberkholz » Fri May 02, 2003 4:15 am

andrd wrote:I've done this vefore. all that is nesscary is to do the following after you login

Code: Select all

passwd 
/etc/init.d/sshd start
and it should work.
I have a computer with no keyboard, mouse or monitor. I'd like to install Gentoo on it via SSH, and I have access to its CD and floppy drives.

What I'd like to do is get the effects of the above commands onto a bootable CD.

Any ideas on how to do that and then how to create the bootable CD would be greatly appreciated.
Top
StuBear
Apprentice
Apprentice
User avatar
Posts: 157
Joined: Wed Feb 26, 2003 9:49 am
Location: Melbourne,AUSTRALIA

  • Quote

Post by StuBear » Fri May 02, 2003 4:55 am

To do what you want you would need the livecd to have a default root password and have the livecd start sshd at boot time.

To add a default root password you will need to mount the iso image on a loop device

Code: Select all

mount -o loop livecd.iso /mnt/cdrom
You will then need to mount the cloop image which contains the live fielsystem in compressed form - you will probably need to emerge cloop first and lsmod the cloop module before you acn mount it. I'm not sure whether you can right to a mounted cloop image - never tried.

Your best bet may be to mount the cloop image and then to chroot to it. Then you can run passwd and rc-update add sshd default to set the passwd and to start sshd at boot time.

Unmount the cloop and the isoimage and hopefully your boot disk will now have a default root password and start sshd. Note this is all dependant on being able to write to a mounted cloop image.

Another option would be to emerge livecd-ng and create your own live cd or plug a keyboard and monitor into the server for the few minutes it takes to boot the cd, create a passwd and start sshd
Top
dberkholz
Retired Dev
Retired Dev
User avatar
Posts: 1008
Joined: Tue Mar 18, 2003 6:51 am
Location: Minneapolis, MN, USA
Contact:
Contact dberkholz
Website

  • Quote

Post by dberkholz » Fri May 02, 2003 7:24 am

Thanks StuBear, sounds like some great ideas. I'll give them a try as soon as I have Internet access on a computer with Gentoo. I'm doubtful of the ability to write to the cloop image, since AFAIK there's no way to write to a mounted ISO, and I don't know how to make a new CD bootable if I start copying things out of the ISO to other places. livecd-ng sounds like it may be a better option. If I had a keyboard or mouse, I certainly would plug them in (my other computer is a laptop).
Top
Post Reply

7 posts • Page 1 of 1

Return to “Installing Gentoo”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic