arrow_upward

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Secure Your VPS SSH
#1
Hello, 
I will tell you how to secure your vps ssh by changing port. 
1st. Login with SSH (root) 
2nd. Type this command 
Terminal
nano /etc/ssh/sshd_config
You will get this if you are using CentOS
Terminal
GNU nano 2.3.1  File: /etc/ssh/sshd_config           
#       $OpenBSD: sshd_config,v 1.100 2016/08/15 12:32$
# This is the sshd server system-wide configuration fi$# sshd_config(5) for more information.

# This sshd was compiled with PATH=/usr/local/bin:/usr$
# The strategy used for options in the default sshd_co$# OpenSSH is to specify options with their default val$# possible, but leave them commented.  Uncommented opt$# default value.

# If you want to change the port on a SELinux system, $# SELinux about this change.
# semanage port -a -t ssh_port_t -p tcp #PORTNUMBER
#
#Port 22
#AddressFamily any
#ListenAddress 0.0.0.0
#ListenAddress ::

                  [ Read 139 lines ]
^G Get He^O WriteO^R Read F^Y Prev P^K Cut Te^C Cur Pos^X Exit  ^J Justif^W Where ^V Next P^U UnCut ^T To Spel
Changw the port line to 
Terminal
Port 4/5NUMBERS HERE
And remove the #
EX:
Terminal
Port 9988
And then click CTRL + O
And press Enter to save the directory
And then type this command
Terminal
service sshd restart
And for Ubuntu do all of these steps but when you want to save do
Terminal
service ssh restart
Now reboot or just exit from PuTTy and change the port to 9988 (the changed port) and re connect Smile
Reply and rate!


Messages In This Thread
Secure Your VPS SSH - by youssefbasha - 11-01-2017, 01:25 PM
RE: Secure Your VPS SSH - by Dudi - 11-02-2017, 10:48 AM
RE: Secure Your VPS SSH - by humanpuff69 - 11-02-2017, 11:19 AM
RE: Secure Your VPS SSH - by youssefbasha - 11-04-2017, 06:40 AM
RE: Secure Your VPS SSH - by Conan - 11-18-2017, 10:50 AM
RE: Secure Your VPS SSH - by OldMeister - 11-18-2017, 01:31 PM
RE: Secure Your VPS SSH - by oraldavid - 11-18-2017, 01:45 PM
RE: Secure Your VPS SSH - by humanpuff69 - 11-19-2017, 06:03 AM
RE: Secure Your VPS SSH - by arsalahmed786 - 11-22-2017, 11:50 AM
RE: Secure Your VPS SSH - by oraldavid - 11-22-2017, 11:55 AM
RE: Secure Your VPS SSH - by arsalahmed786 - 11-22-2017, 11:57 AM
RE: Secure Your VPS SSH - by oraldavid - 11-22-2017, 11:59 AM
RE: Secure Your VPS SSH - by perry - 11-22-2017, 03:24 PM
RE: Secure Your VPS SSH - by arsalahmed786 - 11-23-2017, 10:42 AM
RE: Secure Your VPS SSH - by Honey - 11-29-2017, 04:56 AM
RE: Secure Your VPS SSH - by deanhills - 04-02-2018, 09:17 PM
RE: Secure Your VPS SSH - by chanalku91 - 04-03-2018, 05:55 AM
RE: Secure Your VPS SSH - by humanpuff69 - 04-21-2018, 03:07 AM
RE: Secure Your VPS SSH - by chanalku91 - 04-21-2018, 05:38 AM
RE: Secure Your VPS SSH - by Deep Saha - 04-21-2018, 05:01 PM
RE: Secure Your VPS SSH - by Littlemaster - 04-25-2018, 01:57 AM
RE: Secure Your VPS SSH - by IEpicDestroyer - 05-04-2018, 02:57 PM

Possibly Related Threads…
Thread
Author
Replies
Views
Last Post

person_pin_circle Users browsing this thread: 1 Guest(s)
Sponsors: VirMach - Host4Fun - CubeData - Evolution-Host - HostDare - Hyper Expert - Shadow Hosting - Bladenode - Hostlease - RackNerd - ReadyDedis - Limitless Hosting