Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 Apr 2011 17:40:36 +0100
From:      Matthew Seaman <m.seaman@infracaninophile.co.uk>
To:        freebsd-questions@freebsd.org
Subject:   Re: Remote access to Freebsd server
Message-ID:  <4DA5D204.2000808@infracaninophile.co.uk>
In-Reply-To: <750399.3664.qm@web31601.mail.mud.yahoo.com>
References:  <750399.3664.qm@web31601.mail.mud.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4DA5D204.2000808>