From owner-freebsd-questions@FreeBSD.ORG Wed Apr 13 16:40:55 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 CC12D106564A for ; Wed, 13 Apr 2011 16:40:55 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from smtp.infracaninophile.co.uk (smtp6.infracaninophile.co.uk [IPv6:2001:8b0:151:1:3fd3:cd67:fafa:3d78]) by mx1.freebsd.org (Postfix) with ESMTP id 3FBDF8FC14 for ; Wed, 13 Apr 2011 16:40:55 +0000 (UTC) Received: from russet.local (reflex.squiz.co.uk [83.217.109.164]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.14.4/8.14.4) with ESMTP id p3DGehis079981 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO) for ; Wed, 13 Apr 2011 17:40:48 +0100 (BST) (envelope-from m.seaman@infracaninophile.co.uk) X-DKIM: Sendmail DKIM Filter v2.8.3 smtp.infracaninophile.co.uk p3DGehis079981 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=infracaninophile.co.uk; s=201001-infracaninophile; t=1302712848; bh=UCj+D7863JG/UIN5PPwZBYnNfKObtYbMWt4yd61g/9w=; h=Message-ID:Date:From:MIME-Version:To:Subject:References: In-Reply-To:Content-Type:Cc:Content-Type:Date:From:In-Reply-To: Message-ID:Mime-Version:References:To; z=Message-ID:=20<4DA5D204.2000808@infracaninophile.co.uk>|Date:=20W ed,=2013=20Apr=202011=2017:40:36=20+0100|From:=20Matthew=20Seaman= 20|User-Agent:=20Mozilla/5.0=20(M acintosh=3B=20U=3B=20Intel=20Mac=20OS=20X=2010.6=3B=20en-US=3B=20r v:1.9.2.15)=20Gecko/20110303=20Thunderbird/3.1.9|MIME-Version:=201 .0|To:=20freebsd-questions@freebsd.org|Subject:=20Re:=20Remote=20a ccess=20to=20Freebsd=20server|References:=20<750399.3664.qm@web316 01.mail.mud.yahoo.com>|In-Reply-To:=20<750399.3664.qm@web31601.mai l.mud.yahoo.com>|X-Enigmail-Version:=201.1.1|Content-Type:=20multi part/signed=3B=20micalg=3Dpgp-sha1=3B=0D=0A=20protocol=3D"applicat ion/pgp-signature"=3B=0D=0A=20boundary=3D"------------enig693782D8 DD9729486DFB4EAF"; b=wu0QOaEn+XgDraQsYvNrsKiWrLmVf+X+ZbIVkk7Ms2tcb6gI+4wg79YpQYb+b53ob FOBO9eW3MUrEQov7eW99KJK26ySbDEeEG29psPqrU+ymVQ2pNxFx6CgAFCW9WbLTXH sajd5392NPslxUaJVWmLNodbWLvZr8nHIK7uiltY= X-Authentication-Warning: lucid-nonsense.infracaninophile.co.uk: Host reflex.squiz.co.uk [83.217.109.164] claimed to be russet.local Message-ID: <4DA5D204.2000808@infracaninophile.co.uk> Date: Wed, 13 Apr 2011 17:40:36 +0100 From: Matthew Seaman User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.15) Gecko/20110303 Thunderbird/3.1.9 MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <750399.3664.qm@web31601.mail.mud.yahoo.com> In-Reply-To: <750399.3664.qm@web31601.mail.mud.yahoo.com> X-Enigmail-Version: 1.1.1 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig693782D8DD9729486DFB4EAF" X-Virus-Scanned: clamav-milter 0.97 at lucid-nonsense.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-0.1 required=5.0 tests=BAYES_20,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,SPF_FAIL autolearn=no version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on lucid-nonsense.infracaninophile.co.uk 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 16:40:55 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig693782D8DD9729486DFB4EAF Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 13/04/2011 16:37, afiddler10 wrote: > Hi, I am new to the Linux environment. I am trying to build a > virtual Freebsd server to run another virtual device (a Juniper > router). I have found that after building the base operating system > that I cannot remotely access the virtual Freebsd server. I have > tried using both Qemu and VMware with the same result. It looks to > me as though the server has a default setting that allows it to > contact other devices (e.g., I can ping, ftp, telnet, etc., other > devices from my Freebsd server) but I cannot ping, ftp, telnet into > the Freebsd server from my host PC. My host is a Windows 7 desktop, > but I have tried pinging from another virtual device and cannot get a > response from the Freebsd server. I do not believe that the issue is > my Windows 7 PC. Verb. Sap. Don't confuse FreeBSD with Linux. Especially on FreeBSD mailing lists. It's like mistaking a Scotsman for an Englishman. Tends to cause a lot of red faces and shouting, if not actual fisticuffs... Hmmm... with the firewall config set to 'open', ping should work. Are you behind a NAT gateway? Anyhow, your problem is this: you need to turn /on/ a daemon process to enable remote access. Unlike many widely used OSes, FreeBSD ships with just about everything available in the OS turned off. Which might seem perverse to the uninitiated, but trust me; it's a real blessing over all.= 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. If 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. As ever, the Handbook is your friend for instructions on how to do this sort of stuff. Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate JID: matthew@infracaninophile.co.uk Kent, CT11 9PW --------------enig693782D8DD9729486DFB4EAF Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.14 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk2l0gsACgkQ8Mjk52CukIxmaACffHxWgJdRdkj0cmPHGQc1V9fg MdEAnj5iALePhsLCwVvFH+pfMMsk1Dim =fnrS -----END PGP SIGNATURE----- --------------enig693782D8DD9729486DFB4EAF--