$ ssh-keygen -t rsa -C "email@example.com" Generating public/private rsa key pair. Enter file in which to save the key (/home/linyunwen/.ssh/id_rsa): Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in /home/linyunwen/.ssh/id_rsa Your public key has been saved in /home/linyunwen/.ssh/id_rsa.pub The key fingerprint is: SHA256:2JmjfMInqjqXcEzoacXw7k9E0mH6SloJ4oDwnHqGu3U [email@gmail.com](mailto:email@gmail.com) The key's randomart image is: +---\[RSA 3072\]----+ |. o | |o+ .+ . | ... |o+ooE.* o | |.ooo.. = | |o+..o. | +----\[SHA256\]-----+
$ ssh -T git@github.com Hi LinYunWen! You've successfully authenticated, but GitHub does not provide shell access.
$ ssh -T git@gitlab.com The authenticity of host '[gitlab.com](http://gitlab.com/) (172.65.251.78)' can't be established. ECDSA key fingerprint is SHA256:HbW3g8zUjNSksFbqTiUWPWg2Bq1x8xdGUrliXFzSnUw. Are you sure you want to continue connecting (yes/no/\[fingerprint\])? yes Warning: Permanently added 'gitlab.com,172.65.251.78' (ECDSA) to the list of known hosts. Welcome to GitLab, @LinYunWen!