Software Projects

Setting up a Static IP Address and Enabling ssh on Ubuntu

Posted in Uncategorized by rmt on June 25, 2011

To use a static IP address, edit /etc/network/interfaces to contain:

# The primary network interface
auto eth0
#iface eth0 inet dhcp
iface eth0 inet static
address <IP address>
netmask <value, which is sometimes 255.255.255.0>
network <value, sometimes same as IP but ending with .0>
broadcast <value, sometimes same as IP but ending with .255>
gateway <value, sometimes same as IP but ending with .254>

# The loopback network interface
auto lo
iface lo inet loopback

To install ssh:

sudo apt-get install openssh-server

This should configure the ssh service to be automatically started during boot.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s