Configuring ssh keys for git access on Ubuntu

2016/01/12

Tags: ssh ubuntu linux git ssh key

To be able to connect to a git repository with ssh access (ssh://) use the following steps:

    Host my_githost.com    
    HostName my_githost.com    
    User my_username    
    IdentityFile ~/.ssh/my_private_key_file
    chmod 400 ~/.ssh/my_private_key_file

Now you can clone your repository.