There’s a neat Ubuntu command which allows you to easily import your ssh public keys from Github to your server user account.

Openssh Server GithubGithub

By default, it will append the fetched public key (or keys if you specify multiple accounts) to the current user’s ~/.ssh/authorized_keys file. Once you’ve run the above, you will be able to ssh to your server account using the same key you would use to push code to Github.

The underlying command also supports launchpad.net as a public key server and allows you to specify multiple accounts at once.

  • Using the SSH protocol, you can connect and authenticate to remote servers and services. With SSH keys, you can connect to GitHub Enterprise Server without supplying your username and personal access token at each visit. Checking for existing SSH keys Before you generate an SSH key, you can check to see if you have any existing SSH keys.
  • By default, it will append the fetched public key (or keys if you specify multiple accounts) to the current user’s /.ssh/authorizedkeys file. Once you’ve run the above, you will be able to ssh to your server account using the same key you would use to push code to Github.
Openssh Server Github

This command is also used as part of the Ubuntu setup process. When creating a new user, you will be prompted with a choice to download your keys from Github. This is a nice touch, and certainly more convenient than copy and pasting your keys around.

Github2019

As always, when using a command like this, take care and be sure the account you specify is one you control and only has the keys you expect to be granted access. You’ll be allowing anyone with the associated private key full access to your server account without the need for the account password.

For more information about this command, visit http://manpages.ubuntu.com/manpages/bionic/man1/ssh-import-id.1.html

Windows Openssh Server Github

OpenSSH is the open-source version of the Secure Shell (SSH) tools used by administrators of Linux and other non-Windows for cross-platform management of remote systems. OpenSSH has been added to Windows as of autumn 2018, and is included in Windows 10 and Windows Server 2019.