To enable shell access, you must add an SSH key to your GitHub Enterprise installation. Shell access allows you to run commands that don't require elevated permissions (such as date, uptime, top, and ps) as well as many command-line utilities provided specifically for GitHub Enterprise.

Shell access is not available on GitHub Enterprise versions prior to 11.10.260.

  1. Navigate to the Management Console.

    http(s)://hostname/setup
    
  2. Settings tabClick the "Settings" tab.

  3. Add new keyClick Add new key.

  4. Paste keyPaste your public SSH key into the text field that appears, restricting access to particular IP addresses if necessary.

  5. Add keyClick Add key.

  6. Save settingsAt the bottom of the page, click Save settings.

Once your instance has been configured, you can SSH into it as the admin user with the following command:

ssh admin@hostname

Troubleshooting

For issues related to establishing an SSH connection with your GitHub Enterprise installation, see "Troubleshooting SSH: Permission denied (publickey)."