* Re: FreeBSD 8 LiveFS - How To Start SSHD?
Sent from my iPhone On Dec 26, 2011, at 3:53 AM, Damien Fleuriot wrote: > On 12/24/11 11:35 PM, Drew Tomlinson wrote: >> I've lost a drive in my FBSD 8.? box. I have a FBSD 8.1 LiveFS CD from >> which I've booted. I'd like to get sshd running so I can connect >> remotely and have the ability to browse, copy/paste, etc. while I see >> what I might be able to salvage before replacing my drive. >> >> I've found these directions: >> >> http://wiki.ggis.biz/index.php/Recover_Using_LiveFS >> >> I can do the "Configure the network connection", the "setup login shell >> for root", and the "Prepare SSH" part. However the "Enable, configure, >> and start sshd" part doesn't seem to apply and really doesn't make sense. >> >> Bottom line is that after running /mnt2/use/sbin/sshd, I can see the >> process in ps output. However when I attempt to connect to sshd as >> root, my connection is immediately closed. I'm thinking it's a >> PermitRootLogin yes issue and I'm missing something but I've read and >> re-read that section and verified that /etc/ssh/sshd_config contains >> PermitRootLogin yes. >> >> Can anyone tell me how to get sshd running or point me to a better link? >> >> Thanks, >> >> Drew >> > > > I would suggest using Martin Matuska's MFSBSD and loading it over PXE > (or burning it to a disk). > > It'll load you a 8.2 BSD in RAM, and from there you'll be able to mount > your local disks. > Alternatively, you could try my DruidBSD. An 8.1 based 24MB bootable ISO that contains 150+ utilities and boots into RAM from CD, DVD or USB thumb (just dd the iso to thumb). http://druidbsd.sourceforge.net/ I've ran root-login-enabled sshd from this several times. -- Devin _ The information contained in this message is proprietary and/or confidential. If you are not the intended recipient, please: (i) delete the message and all copies; (ii) do not disclose, distribute or use the message in any manner; and (iii) notify the sender immediately. In addition, please be aware that any message addressed to our domain is subject to archiving and review by persons other than the intended recipient. Thank you. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: FreeBSD 8 LiveFS - How To Start SSHD?
On 12/24/11 11:35 PM, Drew Tomlinson wrote: > I've lost a drive in my FBSD 8.? box. I have a FBSD 8.1 LiveFS CD from > which I've booted. I'd like to get sshd running so I can connect > remotely and have the ability to browse, copy/paste, etc. while I see > what I might be able to salvage before replacing my drive. > > I've found these directions: > > http://wiki.ggis.biz/index.php/Recover_Using_LiveFS > > I can do the "Configure the network connection", the "setup login shell > for root", and the "Prepare SSH" part. However the "Enable, configure, > and start sshd" part doesn't seem to apply and really doesn't make sense. > > Bottom line is that after running /mnt2/use/sbin/sshd, I can see the > process in ps output. However when I attempt to connect to sshd as > root, my connection is immediately closed. I'm thinking it's a > PermitRootLogin yes issue and I'm missing something but I've read and > re-read that section and verified that /etc/ssh/sshd_config contains > PermitRootLogin yes. > > Can anyone tell me how to get sshd running or point me to a better link? > > Thanks, > > Drew > I would suggest using Martin Matuska's MFSBSD and loading it over PXE (or burning it to a disk). It'll load you a 8.2 BSD in RAM, and from there you'll be able to mount your local disks. Root login allowed, password is mfsroot. It'll try to get a DHCP IP, if it fails, you'll need to configure an IP manually. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: FreeBSD 8 LiveFS - How To Start SSHD?
mer...@stonehenge.com (Randal L. Schwartz) wrote: > > "Jeff" == Jeff Tipton writes: > Jeff> It is the default behavior of sshd to reject root ... > Jeff> Just access your server with > Jeff> "ssh @, > Jeff> and then issue "su" command to become root ... > > Or better yet, install sudo, which doesn't require you to share > the root password with a group of people, reducing auditability. It makes all kinds of sense to avoid direct root logins to an installed system, but the OP was asking how to use ssh to connect to a system booted from a LiveCD -- which doesn't have any user logins. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: FreeBSD 8 LiveFS - How To Start SSHD?
> "Jeff" == Jeff Tipton writes: Jeff> It is the default behavior of sshd to reject root, and the reason Jeff> is security. I, personally (and I think most of the guys there Jeff> out), just leave it that way. Just access your server with "ssh Jeff> @, and then issue Jeff> "su" command to become root. It will ask you the root password Jeff> which you should know if you installed the system. When you have Jeff> done all the system maintenance that you wanted, press Jeff> -d. It will move you back to your personal shell and Jeff> environment, out of root privileges. Press the -d the second Jeff> time, and you are disconnected from your server. Or better yet, install sudo, which doesn't require you to share the root password with a group of people, reducing auditability. I haven't used "su" in years, except to install sudo. :) -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 http://www.stonehenge.com/merlyn/> Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc. See http://methodsandmessages.posterous.com/ for Smalltalk discussion ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: FreeBSD 8 LiveFS - How To Start SSHD?
On 12/25/2011 07:42 AM, Drew Tomlinson wrote: On 12/24/2011 9:05 PM, Adam Vande More wrote: On Sat, Dec 24, 2011 at 4:35 PM, Drew Tomlinson mailto:d...@mykitchentable.net>> wrote: I can do the "Configure the network connection", the "setup login shell for root", and the "Prepare SSH" part. However the "Enable, configure, and start sshd" part doesn't seem to apply and really doesn't make sense. Bottom line is that after running /mnt2/use/sbin/sshd, I can see the process in ps output. However when I attempt to connect to sshd as root, my connection is immediately closed. ssh -vv Thank you. That led me to know that my host.allow file wasn't right. Fixed that. Now failing when keyboard-interactive packet is sent. Thinking it's the PermitRootLogin yes problem. Have created a sshd_config file set to yes and used the -f /path/to/file switch when starting sshd. Have also tried using -o 'PermitRootLogin yes' when starting. Still not Thanks for your help. Drew It is the default behavior of sshd to reject root, and the reason is security. I, personally (and I think most of the guys there out), just leave it that way. Just access your server with "ssh @, and then issue "su" command to become root. It will ask you the root password which you should know if you installed the system. When you have done all the system maintenance that you wanted, press -d. It will move you back to your personal shell and environment, out of root privileges. Press the -d the second time, and you are disconnected from your server. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: FreeBSD 8 LiveFS - How To Start SSHD?
On 12/24/2011 9:05 PM, Adam Vande More wrote: On Sat, Dec 24, 2011 at 4:35 PM, Drew Tomlinson mailto:d...@mykitchentable.net>> wrote: I can do the "Configure the network connection", the "setup login shell for root", and the "Prepare SSH" part. However the "Enable, configure, and start sshd" part doesn't seem to apply and really doesn't make sense. Bottom line is that after running /mnt2/use/sbin/sshd, I can see the process in ps output. However when I attempt to connect to sshd as root, my connection is immediately closed. ssh -vv Thank you. That led me to know that my host.allow file wasn't right. Fixed that. Now failing when keyboard-interactive packet is sent. Thinking it's the PermitRootLogin yes problem. Have created a sshd_config file set to yes and used the -f /path/to/file switch when starting sshd. Have also tried using -o 'PermitRootLogin yes' when starting. Still not Thanks for your help. Drew -- Like card tricks? Visit The Alchemist's Warehouse to learn card magic secrets for free! http://alchemistswarehouse.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: FreeBSD 8 LiveFS - How To Start SSHD?
On 12/24/2011 4:47 PM, Robert Bonomi wrote: From owner-freebsd-questi...@freebsd.org Sat Dec 24 16:58:02 2011 Date: Sat, 24 Dec 2011 14:35:35 -0800 From: Drew Tomlinson To: freebsd-questions@freebsd.org Subject: FreeBSD 8 LiveFS - How To Start SSHD? I've lost a drive in my FBSD 8.? box. I have a FBSD 8.1 LiveFS CD from which I've booted. I'd like to get sshd running so I can connect remotely and have the ability to browse, copy/paste, etc. while I see what I might be able to salvage before replacing my drive. I've found these directions: http://wiki.ggis.biz/index.php/Recover_Using_LiveFS I can do the "Configure the network connection", the "setup login shell for root", and the "Prepare SSH" part. However the "Enable, configure, and start sshd" part doesn't seem to apply and really doesn't make sense. Bottom line is that after running /mnt2/use/sbin/sshd, I can see the process in ps output. However when I attempt to connect to sshd as root, my connection is immediately closed. I'm thinking it's a PermitRootLogin yes issue and I'm missing something but I've read and re-read that section and verified that /etc/ssh/sshd_config contains PermitRootLogin yes. If it happens -before- getting the login prompt, it is *NOT* a PermitRootLogin isssue. If you get the login prompt, put in 'root', and are -then- cut off it is a root login issue. Immediate connect and disconnect points to an issue with the IP address you're connecting from -- as sshd (or possibly tcpwrapper) sees it, that is. could be "no reverse-DNS", or inconsistent forward/reverse. Could be that the address/domain is blocked in /etc/hosts.{deny,allow} Thank you. Seems I had to restart sshd to get it to read hosts.allow? I didn't think that would be the case but it worked. Now I am having a PermitRootLogin issue because it's happening after the login prompt. Another poster also suggested "ssh -vv" which I ran locally on the LiveFS machine and it confirm that the connection is closed after public key auth fails and it moves to keyboard-interactive. Don't know what to try next. Seems that I can only kill sshd by rebooting. It ignores "kill -15" or "kill -9" commands. Thanks for your help. Drew -- Like card tricks? Visit The Alchemist's Warehouse to learn card magic secrets for free! http://alchemistswarehouse.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: FreeBSD 8 LiveFS - How To Start SSHD?
On Sat, Dec 24, 2011 at 4:35 PM, Drew Tomlinson wrote: > > I can do the "Configure the network connection", the "setup login shell > for root", and the "Prepare SSH" part. However the "Enable, configure, and > start sshd" part doesn't seem to apply and really doesn't make sense. > > Bottom line is that after running /mnt2/use/sbin/sshd, I can see the > process in ps output. However when I attempt to connect to sshd as root, > my connection is immediately closed. > ssh -vv -- Adam Vande More ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: FreeBSD 8 LiveFS - How To Start SSHD?
> From owner-freebsd-questi...@freebsd.org Sat Dec 24 16:58:02 2011 > Date: Sat, 24 Dec 2011 14:35:35 -0800 > From: Drew Tomlinson > To: freebsd-questions@freebsd.org > Subject: FreeBSD 8 LiveFS - How To Start SSHD? > > I've lost a drive in my FBSD 8.? box. I have a FBSD 8.1 LiveFS CD from > which I've booted. I'd like to get sshd running so I can connect > remotely and have the ability to browse, copy/paste, etc. while I see > what I might be able to salvage before replacing my drive. > > I've found these directions: > > http://wiki.ggis.biz/index.php/Recover_Using_LiveFS > > I can do the "Configure the network connection", the "setup login shell > for root", and the "Prepare SSH" part. However the "Enable, configure, > and start sshd" part doesn't seem to apply and really doesn't make sense. > > Bottom line is that after running /mnt2/use/sbin/sshd, I can see the > process in ps output. However when I attempt to connect to sshd as > root, my connection is immediately closed. I'm thinking it's a > PermitRootLogin yes issue and I'm missing something but I've read and > re-read that section and verified that /etc/ssh/sshd_config contains > PermitRootLogin yes. If it happens -before- getting the login prompt, it is *NOT* a PermitRootLogin isssue. If you get the login prompt, put in 'root', and are -then- cut off it is a root login issue. Immediate connect and disconnect points to an issue with the IP address you're connecting from -- as sshd (or possibly tcpwrapper) sees it, that is. could be "no reverse-DNS", or inconsistent forward/reverse. Could be that the address/domain is blocked in /etc/hosts.{deny,allow} ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"