The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

KVM vs SSH

Discussion in 'Security' started by keat63, Dec 17, 2014.

  1. keat63

    keat63 Well-Known Member

    Joined:
    Nov 20, 2014
    Messages:
    765
    Likes Received:
    20
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    My server plan gives me a KVM access, where i can enable and disable from an admin panel
    Would this be preferential to SSH, which incidentally has been moved from 22 to a firewalled port.

    It still gives me root access, albeit a little slowly
     
  2. Rhuan

    Rhuan Active Member

    Joined:
    Nov 10, 2010
    Messages:
    39
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Brazil
    cPanel Access Level:
    Root Administrator
    I can't undertand your problem but I think you want recover ssh access, follow this steps:

    1- Login into server using KVM (kvm is a little slowly than ssh).

    2- Edit file /etc/ssh/sshd_config and find for "Port" (nano /etc/ssh/sshd_config) and change to a new port you want to use or just comment this file to back for 22

    3- If you are using Config&Server Firewall you have to allow incoming connections to ssh port, you can do this editing file /etc/csf/csf.conf (nano /etc/csf/csf.conf) find for TCP_IN= and put the port inside " ".

    4- Now you have to restart booth services:

    Code:
    csf -r
    service sshd restart
     
  3. keat63

    keat63 Well-Known Member

    Joined:
    Nov 20, 2014
    Messages:
    765
    Likes Received:
    20
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    I have ssh access. (no problem)
    I was thinking of maybe closing SSH down entirely, (if possible)

    And then if ever i needed it, I could log in to my admin panel, enable KVM, and operate the terminal from the KVM.
    It's only a thought
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    654
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    Typically you should reserve KVM access for situations where SSH is not accessible. The following thread is useful if you want to secure SSH access:

    SSH Hardening

    Thank you.
     
Loading...

Share This Page