RailsPlayground
Enabling SSH on a different port

To enable SSH on a different port, the following steps are to be followed

1. Opening the target port on your VPS firewall : Your VPS comes with the APF firewall installed, so you will need to open up the port at the firewall

This can be done by editing the /etc/apf/conf.apf

and search for an entry within conf.apf as

IG_TCP_CPORTS

and add the intended port to this list

Save the state of the firewall and restart the service using the commands

apf -s
/etc/init.d/apf restart

2. Edit the file /etc/ssh/sshd_config

change the entry

Port 22

to the intended destination port where SSH should be listening.

3. Edit the file /etc/services

hash the entry

ssh            22/tcp         #SSH Remote Login Protocol
ssh            22/udp         #SSH Remote Login Protocol
#ssh            22/tcp         #SSH Remote Login Protocol
#ssh            22/udp         #SSH Remote Login Protocol

and place the entry at the destined port

ssh           portnumber/tcp
ssh           portnumber/udp

Restart the SSH daemon using the command

~ /etc/init.d/sshd restart

You will be able to access SSH now using

ssh root@vps -p portnumber

4 Tricks for Hunting Cheap Airfare
Benefits Honey for Health
Seed Benefits – Benefits of Black Seed
How to Remove Blackheads Naturally
Signs of Lying Boyfriend Girlfriend – How to Lie
How to Prevent Treat Hemorrhoids with Piles Naturally
Libra Zodiac Today
Exercise Tips To Lose Weight
Shown Naturally Beautiful Woman
Towards Signs of Death
How to Overcome Fever In Babies Naturally
Doomsday Travel In Mexico 2012
Deodorant Side Effects is Cancer
Shio Water Dragon Year Forecast 2012 – Fate and Fortune
6 Benefits of Sleep Without Underwear for Women
Words Love New Super Mario

Zodiac Virgo Today
Sad Love Poems
alentine Day – History and Myth
Solar Storm – End of Human Civilization
Scorpio Zodiac Today
Unique Cars Can Drive Automatic
Water Power Mobile Phone Charger
Types of Personal Loans
Friv – Best Free Online Games
Map of World’s Smallest
Pisces Zodiac Forecast Today
Zodiac Aquarius Today
Words of Broken Heart Cute New Gokil
World’s Most Dangerous Animals
Words of Wisdom for Motivation
Best Credit Card
Hotmail – Free Email
Bad Credit Credit Card
Prepaid Credit Card
Secured Credit Card
First Credit Card
Breast Cancer Tips
Famous Love Quotes
What Is a Credit Report?
Exxon Mobil Credit Card Online Payment
Mobile Credit Card Machine
free all day
Cara Mendidik Anak
ksaday
Free Popular Games Android
MyTrans

Video Lucu
Hidup Sehat
Install Windows 7
Windows XP
Install Windows XP
Cara Belajar Bahasa Inggris
Makanan Berbahaya
Cara Mendidik Anak
MyTrans

Cinema3satu Megaupload

Toyota Avanza Terbaru

Harga Mobil Suzuki Video Aneh Point Blank Kanker Payudara Komik Naruto Bahasa Indonesia Kata Cinta Daftar Mobil Smadav IDM Cinema XII

nấm linh chi đỏ

rượu linh chi