Change default SSH port

step1. #vi /etc/ssh/sshd_config
step2. #Port 22022 (22022 defineed as custom port but you can put any number)step3: #/etc/init.d/ssh restart  (restart SSH)
Step4: ssh -p 22022 (verify that is is working)
(#ssh -p 22022 hostname)

(bind to listed particular address (source): ListenAddress IP address

Sample of Original configuration file below:

# The strategy used for options in the default sshd_config shipped with
# OpenSSH is to specify options with their default value where
# possible, but leave them commented.  Uncommented options change a
# default value.

#Port 22
#Protocol 2,1
Protocol 2
#AddressFamily any
#ListenAddress ::


About Robiul

Robiul has 15 years of continuous successful career experience in ICT with extensive background in System Engineering, IT infrastructure design, operations and service delivery, managing IT projects / MIS functions for local and multi-national companies with in-depth knowledge of multiple operating systems as well as construct / manage small to medium size Data Center. Proven ability to design and implement medium to semi-large scale LAN/WAN/WLAN and system infrastructures. Academic qualification: Master of Science in Information Systems. Professional certifications are: MCSE, CCNA, ITIL and FoundStone Security Professional, VCP, NetAPP, CISSP etc.
This entry was posted in Linux and tagged . Bookmark the permalink.