Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 Apr 2011 17:40:36 +0100
From:      Matthew Seaman <>
Subject:   Re: Remote access to Freebsd server
Message-ID:  <>
In-Reply-To: <>
References:  <>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
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:


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

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.



Dr Matthew J Seaman MA, D.Phil.                   7 Priory Courtyard
                                                  Flat 3
PGP:     Ramsgate
JID:               Kent, CT11 9PW

Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
Comment: Using GnuPG with Mozilla -



Want to link to this message? Use this URL: <>