Enable SSH (Secure Shell) in Ubuntu 12.04 (Precise Pangolin)

To get openssh server:

sudo apt-get install openssh-server

That’s it! Use your SSH clients to connect to your machine using the default port 22.

If you wish to change the connection port, run the commands below to open the configuration file.
sudo gedit /etc/ssh/sshd_config

Find the line:

# What ports, IPs and protocols we listen for
Port 22

Then change the port # shown to whatever you want, for example, 3391 and save the file.

But remember to use the new port number every time you want to connect to your system via SSH.

Advertisements

About zephyr9000

Happy sailer
This entry was posted in ssh and tagged . Bookmark the permalink.

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