Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Connect to server via SSH using MacOS

Discussion in 'General Discussion' started by hoseke, Dec 17, 2018.

Tags:
  1. hoseke

    hoseke Member

    Joined:
    Jan 4, 2012
    Messages:
    13
    Likes Received:
    1
    Trophy Points:
    51
    cPanel Access Level:
    Root Administrator
    Hi,
    Trying to connect server via SSH using MacOS, and i found this url in documentation:

    SSH Access - Version 76 Documentation - cPanel Documentation

    To log in to your MacOS or Linux server via SSH, perform the following steps:

    1. Open a terminal session.
    2. Run the following command:

      ssh -p port user@IP
      Note:

      In the above command:
      • port represents the port number.
      • user represents your username.
      • IP represents your IP address.
    And i'm confused:

    1.Which port? How do i know my port?
    2. user name, i think this refer to: root ?
    3. IP address, is this server IP? or my network/router IP?

    Any one using MacOS, appreciate it.
     
  2. dalem

    dalem Well-Known Member PartnerNOC

    Joined:
    Oct 24, 2003
    Messages:
    2,883
    Likes Received:
    118
    Trophy Points:
    368
    Location:
    SLC
    cPanel Access Level:
    DataCenter Provider
    if you have not changed your ssh port then the port will be 22

    if you are still unsure what your port is
    you can restart ssh in whm & it will show you what port SSH is listening on
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    hoseke likes this.
  3. cPanelMichael

    cPanelMichael Technical Support Community Manager Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    47,002
    Likes Received:
    2,123
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello @hoseke,

    If you're attempting to access your cPanel & WHM server via SSH as "root", then your username is "root" and the IP address is the IP address of the cPanel & WHM server. By default, the SSH port is 22.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    hoseke likes this.
  4. hoseke

    hoseke Member

    Joined:
    Jan 4, 2012
    Messages:
    13
    Likes Received:
    1
    Trophy Points:
    51
    cPanel Access Level:
    Root Administrator
    Hello @cPanelMichael, I'll try using the info provided, port 22 same as SFTP.

    when i restart ssh via WHM received the following:

    "sshd (/usr/sbin/sshd -D) is running as root with PID xxxxxxx (systemd+/proc check method)."

    another question: PID is a 7 digits number, but is doesn't mean its the Port number?

    Thank you.
     
  5. dalem

    dalem Well-Known Member PartnerNOC

    Joined:
    Oct 24, 2003
    Messages:
    2,883
    Likes Received:
    118
    Trophy Points:
    368
    Location:
    SLC
    cPanel Access Level:
    DataCenter Provider
    Look for this
    Startup Log
    Dec 18 09:05:02 hostname systemd[1]: Starting OpenSSH server daemon...
    Dec 18 09:05:02 hostname sshd[3133744]: Server listening on 0.0.0.0 port 22.


    or you can just open a terminal on WHM an run
    grep Port /etc/ssh/sshd_config
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. cPanelMichael

    cPanelMichael Technical Support Community Manager Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    47,002
    Likes Received:
    2,123
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    This is normal output. It shows that SSH is running well.

    PID means "Process ID". It's the ID associated with the SSHd process that's running.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice