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.
-
Navigate to the Management Console.
http(s)://hostname/setup
Click the "Settings" tab.
Click Add new key.
Paste your public SSH key into the text field that appears, restricting access to particular IP addresses if necessary.
Click Add key.
At 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)."