How to Start, Stop and Restart SSH on cPanel/WHM Server
How to Start, Stop and Restart SSH on cPanel Server
On cPanel servers you can restart SSH service either through WHM or from the server backend through SSH. Only VPS and dedicated server owners can restart the service, shared hosting customers can only access files within their cPanel account. VPS and dedicated server owners have root access to the server.
Steps to restart SSH service through WHM
If SSH service is down, then you won’t be able to login to the server. You can easily restart the SSH service via WHM if SSH service is down on your VPS or Dedicated server
Open a web browser and type the URL http://YourServerHostname:2086 to access WHM. ‘YourServerHostname’ in the link should be replaced with actual hostname of the server. You can also use server IP in the URL (instead of hostname) to access WHM.
Link to access WHM : http://YourServerHostname:2086
Username : root
Password : Enter the root password of the server
2. Search for “SSH Server” in WHM search bar on the left
3. Click on ‘SSH Server (OpenSSH)’ under ‘Restart Services’
Search for the keyword “ssh” in WHM search bar like shown in the picture below
WHM Home » Restart Services » SSH Server (OpenSSH)
3. Click ‘Yes’ to confirm
WHM will ask the below confirmation before restarting the service.
“Are you sure you wish to restart this service?” Click on “Yes” to restart the SSH service.
————-
Restarting SSH Daemon
Waiting for “sshd” to restart ………waiting for “sshd” to initialize ………finished.
Service Status
sshd (/usr/sbin/sshd -D) is running as root with PID 26524 (systemd check method).
Startup Log
Apr 25 09:06:44 server systemd[1]: Started OpenSSH server daemon.
Apr 25 09:06:44 server systemd[1]: Starting OpenSSH server daemon…
Apr 25 09:06:44 server sshd[26524]: Server listening on 0.0.0.0 port 22.
Apr 25 09:06:44 server sshd[26524]: Server listening on :: port 22.
Log Messages
Apr 25 09:06:44 server sshd[26524]: Server listening on :: port 22.
Apr 25 09:06:44 server sshd[26524]: Server listening on 0.0.0.0 port 22.
Apr 25 09:06:44 server sshd[7094]: Received signal 15; terminating.
sshd restarted successfully.
————-
If SSH service is restarted successfully it will show “sshd restarted successfully” with a green tick. While restarting SSH service you might see error “sshd failed” with errors shown in red.
How to restart SSH service from the command line (Server Backend)
You can use software like putty to SSH into the server.
2. Run the cPanel script /scripts/restartsrv_sshd to restart SSH
This is service restart script developed by cPanel and it can be used on both RHEL 6 and RHEL 7 servers to restart the service.
Command : /scripts/restartsrv_sshd
Waiting for âsshdâsshdâ
Service Status
sshd (/usr/sbin/sshd -D) is running as root with PID 28294 (systemd check method).
Startup Log
Apr 25 09:37:16 server systemd[1]: Started OpenSSH server daemon.
Apr 25 09:37:16 server systemd[1]: Starting OpenSSH server daemon…
Apr 25 09:37:16 server sshd[28294]: Server listening on 0.0.0.0 port 22.
Apr 25 09:37:16 server sshd[28294]: Server listening on :: port 22.
Log Messages
Apr 25 09:37:16 server sshd[28294]: Server listening on :: port 22.
Apr 25 09:37:16 server sshd[28294]: Server listening on 0.0.0.0 port 22.
Apr 25 09:37:16 server sshd[26524]: Received signal 15; terminating.
Apr 25 09:36:25 server sshd[28115]: pam_unix(sshd:session): session opened for user root by (uid=0)
Backend command to restart SSH service on cPanel Server
Log in to your server via SSH as ‘root’. Run one of the below command to restart SSH service.
Command 1 : service sshd restart
OR
Command 2 : etc/init.d/sshd restart
Commands to restart SSH on cPanel server with CentOS 7 / RHEL 7 OS
CentOS 7 servers use systemctl command to restart SSH service.
Command 1 : service sshd restart
OR
Command 2 : systemctl restart sshd.service
Comments
comprar ropa interior masculina online
Hello, Neat post. There is a problem along with your website in internet explorer, may test this IE still is the market leader and a big component to other people will omit your excellent writing because of this problem.
comprar ropa interior masculina online http://www.residenzaplanejados.com.br/zapla.php?es=comprar-ropa-interior-masculina-online
comprar calzoncillos calvin klein baratos
I loved as much as you will receive carried out right here. The sketch is tasteful, your authored material stylish. nonetheless, you command get got an impatience over that you wish be delivering the following. unwell unquestionably come more formerly again as exactly the same nearly a lot often inside case you shield this increase.
comprar calzoncillos calvin klein baratos http://www.seaplanejados.com.br/lanea.php?es=comprar-calzoncillos-calvin-klein-baratos
jordan 4
Per year our company unlock someone heartfelt gift directly on X-mas Event which in turn came to be the actual the little sister supplied me with to open up. These are definitely AMAZING jordan 4 http://www.aliexpress.com/store/group/Hiking-Shoes/1950023_506538526.html! I have achieving these folks time of day and even my current legs are saved to fog up 11! And tend to be tremendously pretty and much as well as all the monotonous unique models. Right X-MAS Christmas gift In fact!!!
nike air max thea mujer
You could certainly see your enthusiasm in the paintings you write. The world hopes for even more passionate writers such as you who aren’t afraid to mention how they believe. At all times go after your heart.
nike air max grå billigt rea sverige
My brother recommended I might like this website. He was entirely right. This post truly made my day. You can not imagine simply how much time I had spent for this information! Thanks!
salomon trail running
I am continually looking online for tips that can facilitate me. Thanks!
nike air max 1 ultra moire
Wow, incredible blog layout! How long have you been blogging for? you make blogging look easy. The overall look of your site is excellent, as well as the content!
boxer calvin klein precio
As I site possessor I believe the content material here is rattling great , appreciate it for your efforts. You should keep it up forever! Best of luck.
boxer calvin klein precio http://www.pasitoapasito.es/itoam.asp?so=boxer-calvin-klein-precio
comprar christian louboutin
I have recently started a blog, the info you offer on this website has helped me tremendously. Thanks for all of your time & work.
comprar christian louboutin http://www.jointwaters.eu/watere.php?es=id-3831
xtube
Thank you ever so for you blog post.Really thank you! Great.
Isabelmarant
Good blog! I truly love how it is easy on my eyes and the data are well written. I am wondering how I might be notified whenever a new post has been made. I have subscribed to your RSS which must do the trick! Have a nice day!
salomon calzado
Nice blog here! Also your site loads up very fast! What web host are you using? Can I get your affiliate link to your host? I wish my web site loaded up as quickly as yours lol
salomon calzado http://www.construtoracopas.com.br/copas.php?es=salomon-calzado
zapatos salomon hombre
Great blog here! Also your web site loads up fast! What web host are you using? Can I am getting your affiliate link to your host? I want my website loaded up as fast as yours lol
nike air max 2015 pas cher
I am truly pleased to glance at this weblog posts which carries plenty of valuable data, thanks for providing such data.
calzoncillos calvin klein
Wonderful work! This is the type of info that are meant to be shared around the net. Disgrace on the seek engines for no longer positioning this post upper! Come on over and seek advice from my website . Thank you =)
calzoncillos calvin klein http://www.nauncao.com.br/ncte.php?es=id-3260
timberland granatowe
I delight in, cause I found exactly what I used to be having a look for. You have ended my 4 day lengthy hunt! God Bless you man. Have a nice day. Bye
timberland granatowe http://www.teolds.com/lod/sklep-timberland.html
Porno
obviously like your website but you have to check the spelling on several of your posts. A number of them are rife with spelling problems and I find it very troublesome to tell the reality then again I will definitely come back again.
sanda艂y timberland
I have been exploring for a little bit for any high quality articles or weblog posts in this sort of house . Exploring in Yahoo I ultimately stumbled upon this web site. Studying this information So iˇm satisfied to show that I’ve a very excellent uncanny feeling I found out exactly what I needed. I so much no doubt will make certain to donˇt forget this website and provides it a glance regularly.
sanda艂y timberland http://poszukujemy.com.pl/pie/buty-zimowe-m臋skie-timberland.html
payday loan
It’s really a nice and helpful piece of info. I’m glad that you shared this useful information with us. Please keep us up to date like this. Thanks for sharing.
go to my blog
I simply want to say I’m new to blogs and honestly liked this web page. Likely I’m going to bookmark your blog . You certainly have very good articles. Regards for sharing your web-site.