From owner-freebsd-questions@FreeBSD.ORG Wed Apr 13 17:55:38 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A7354106564A for ; Wed, 13 Apr 2011 17:55:38 +0000 (UTC) (envelope-from kurt.buff@gmail.com) Received: from mail-ww0-f42.google.com (mail-ww0-f42.google.com [74.125.82.42]) by mx1.freebsd.org (Postfix) with ESMTP id 3AE538FC14 for ; Wed, 13 Apr 2011 17:55:37 +0000 (UTC) Received: by wwk4 with SMTP id 4so5148157wwk.1 for ; Wed, 13 Apr 2011 10:55:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type:content-transfer-encoding; bh=TxZWs/N5w7lQ0x+NkoDanyO6hp4+zDR05h/tc2AZffk=; b=iqHkbn2+FefPjtspzFa3SYQpeEG8u4K+nU76JNRDlJ731/+eDOSlz7bzLL9st61VzJ DcaUDuN/l4cbIScIRy/HBJIJtwgGqc+Sd2/BNmNzNmP02853YB80wt36kxmR7iNnra9x jCakzQmAPsxjsLRTidJKECAy0PIYdwCQRkjp8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=soG4vL9QvSMFP5LIdYUhOOnlzdPLyB6fMFYSl6Nk1Yzh0JN2Y/ZiCMQzO6wdZI7eIR PBD9CGY9MkuyV3Pp6VWmVJIvn5Jf4n997rnxhKoAS5dwi7kunZiN223IWFqftQz8sE20 eLzbR6RcaHAL7CGM/XrgawvIWKNdch+2kUmec= MIME-Version: 1.0 Received: by 10.216.80.25 with SMTP id j25mr7868692wee.35.1302715779011; Wed, 13 Apr 2011 10:29:39 -0700 (PDT) Received: by 10.216.157.1 with HTTP; Wed, 13 Apr 2011 10:29:38 -0700 (PDT) In-Reply-To: <4DA5D204.2000808@infracaninophile.co.uk> References: <750399.3664.qm@web31601.mail.mud.yahoo.com> <4DA5D204.2000808@infracaninophile.co.uk> Date: Wed, 13 Apr 2011 10:29:38 -0700 Message-ID: From: Kurt Buff To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: Remote access to Freebsd server X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Apr 2011 17:55:38 -0000 On Wed, Apr 13, 2011 at 09:40, Matthew Seaman wrote: > On 13/04/2011 16:37, afiddler10 wrote: > Edit the file /etc/rc.conf and add the line: > > sshd_enable=3D"YES" > > Then run this command as root: > > # /etc/rc.d/sshd start > > (you only need to do that as a one-off -- adding the line to rc.conf > means the daemon will be started automatically on reboot from now on) > > Then you can use a SSH client from windows to remote login to your > FreeBSD box. =C2=A0If you need a client, try putty from > > http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html > > Nb. by default, you won't be able to SSH in as root -- so set yourself > up a normal user account, add it to the wheel group and then use su(1) > once you've logged in. =C2=A0As ever, the Handbook is your friend for > instructions on how to do this sort of stuff. In the interest of preventing newb pain: Please note that the entry for /etc/rc.conf must be exact. In particular, *do not* miss either of the quote marks, or your machine will hang at next boot, and force you to boot into single user mode to recover from it by adding the missing quote mark and booting again. This is not the end of the world, but until you figure it out, it can induce feelings of fear, nausea, helplessness and acute embarrassment. However, about the third time you've done it, and recovered from it by your own efforts, it's no longer a big thing. Kurt