Skip to content

Instantly share code, notes, and snippets.

@sserbest
Created July 7, 2017 15:52
Show Gist options
  • Save sserbest/36b686b1706257250231503f124c4588 to your computer and use it in GitHub Desktop.
Save sserbest/36b686b1706257250231503f124c4588 to your computer and use it in GitHub Desktop.
Open SSH login on Cpanel

server's /etc/ssh/sshd_config:

To enable password authentication, uncomment

#PasswordAuthentication yes

To enable root login, uncomment

#PermitRootLogin yes

To enable ssh key login, uncomment

#PubkeyAuthentication yes
#AuthorizedKeysFile .ssh/authorized_keys

Allow SSH Login from Cpanel Settings:

  • Go to Manage Shell Access and select "Normal Shell" and save settings

Restart SSHD

/etc/init.d/sshd restart

or

service sshd restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment