Home · News · Articles · Forum · Downloads · Search Your IP: 38.103.63.58 · Today: Monday, January 05, 2009
Main Menu
Home
News
Articles
- General
- Common Software
- Tips & Tricks
- Networking
- Multimedia
- Operation Systems
- Hardware
- Programming
- Security
- Configs
- CMS
Forum
Downloads
Gallery
Search
FAQ
Links
Ping us
Top 10 Article Posters
empty 37
nemo 3
linuxGuru 1
scary 1
tashak 1
siluni 1
Poll
What OS are you using?

Linux

*BSD

Solaris

Mac OS

Windows

Other

You must login to vote.
How to change the SSH port in Linux and FreeBSD
How to change the SSH port in Linux and FreeBSD
This will show you how to change the SSH port in Linux and FreeBSD.

Firstly we need to modify the ssh configuration file named /etc/ssh/sshd_config.
The location of the file is: /etc/ssh/sshd_config
You will need to open the file using your favorite text editor and find the line:

#Port 22

The default port for SSH is 22 and # is there because the line is commented. If you want to change this port you need simply to uncomment the line deleting the # sign in front of it and if you want to change it to 12134 for example the line should looks like this:

Port 12134

Once this is done you will need to restart the SSH daemon service. Here is how it should be done:
In the most linux distribution you can do it using the command:
root@somebox ~$ /etc/init.d/sshd restart

In FreeBSD this should be done using the command:
root@somebox ~$ /etc/rc.d/sshd reload

Now you can login over SSH to the new port and the old one won't be active for SSH connections anymore.

Have fun.
Comments
No Comments have been Posted.
Post Comment
Please Login to Post a Comment.
Ratings
Rating is available to Members only.

Please login or register to vote.

No Ratings have been Posted.
Search

Enter words:


Login
Username

Password



Not a member yet?
Click here to register.

Forgotten your password?
Request a new one here.
Users Online
Guests Online: 1
No Members Online
Registered: 56
Newest: Grantt721
Random Gallery Image
My Desktop
My Desktop
Screenshots
Friends
DJs Place
Fresh Flash Games
Free Wallpapers
PHP Scripts
Levski
Flash Games
HouseFreaks.Net
Improvements
Bookmark and Share
News Feeds
Article Feeds
Forum Feeds
Spam Poison
Valid CSS!
OSGuides.net 2007 - 2008 Creative Commons License.