Skip to main content

SSH Access to WHM

Comments

5 comments

  • JaredR.
    You cannot access the WebHost Manager via SSH. The WHM is a graphical interface that you can only access using a Web browser. What you are trying to do is just not going to work. To access the server via SSH, use port 22 (unless the SSH port is not the default). Unless you have changed the SSH port on the server from the default, you do not even need to specify the port. There is no way to access the WHM via SSH. Just connect directly to the server via SSH on the SSH port, and the WHM is not involved in any way. When you connect to the server via SSH, you will see the Linux command prompt, not the WHM. You are going to need a basic working familiarity with the Linux shell in order to do much via SSH. To access the WebHost Manager, open your favorite Web browser and load it using this URL: I do not see a mention of the ssh command there. I do see "Type: ssh command to access the WHM?
    0
  • JaredR.
    [quote="alanwhiteman, post: 1512061">I've tried to follow the instructions in the documentation section, but to no avail. In the command prompt I enter the following: ssh -v -p 2087 root@[ip.address]
    If we have documentation that tells you to use ssh with the port 2087, then it is incorrect and it needs to be fixed. Can you please provide a link to the documentation that you were following?
    0
  • alanwhiteman
    Hi Jared, Sorry for the missunderstanding, I was under the impression that this was possible. I got the instructions from here: [url=http://docs.cpanel.net/twiki/bin/view/11_30/CpanelDocs/ShellAccess]SSH/Shell Access But obviously, these instructions do not apply to WHM. Probably only to cPanel. I can access WHM through the browser fine. But my objective is to access the server through a terminal so that I can see the file structure. The problem I'm trying to solve is to see why the directory /usr is taking so much space.
    0
  • alanwhiteman
    Jared, the simple ssh root@ worked. Thank you.
    0
  • JaredR.
    That documentation is actually for the SSH terminal Java applet in cPanel. The $port mentioned is supposed to be the server's SSH port, not a cPanel or WHM port. The reason it is written as a variable is that by default the SSH port is 22, but it can be changed by the server's administrator. One would never need to make an SSH connection to the server's WHM or cPanel ports. The SSH terminal applet in cPanel is a Java applet that is meant to allow a user to access the server via SSH from cPanel, not to somehow allow SSH access to the WHM or cPanel. If you are not familiar with basic Linux shell commands, the following tutorials may help you to narrow down the source of the disk usage in /usr: [url=http://www.serverschool.com/dedicated-servers/disk-usage-on-a-linux-server/]How to Find Out Disk Usage on a Linux Server [url=http://www.serverschool.com/server-configuration/commands-for-server-file-system-info/]Commands for Server File System Info
    0

Please sign in to leave a comment.