$ ssh-keygen -t rsa -C "arccode@163.com" Generating public/private rsa key pair. Enter file in which to save the key (/c/Users/ZL-arccode/.ssh/id_rsa): github_id_rsa Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in github_id_rsa. Your public key has been saved in github_id_rsa.pub. The key fingerprint is: SHA256:MV7M1OCoiiIazgV8D52uNxhs9zi840PbT2CfOFDLhYQ arccode@163.com The key's randomart image is: +---[RSA 2048]----+ | .. .... | | E. + +. | | + = + | | . = = + | | j.= C S | | +** + . | | +oO= + | | .ooOi=o | | .o=B* o. | +----[SHA256]-----+
$ ssh-keygen -t rsa -C "username@gmail.com" Generating public/private rsa key pair. Enter file in which to save the key (/c/Users/ZL-arccode/.ssh/id_rsa): gitlab_id_rsa Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in gitlab_id_rsa. Your public key has been saved in gitlab_id_rsa.pub. The key fingerprint is: SHA256:2zfJw2RePrrGc6qKqIvH3qylCmzimIpiUKKAWB87A98 username@gmail.com The key's randomart image is: +---[RSA 2048]----+ |ooo + o+ | |+. + = o.o . | |. . + + E + | | . + + + | | . . S . | |o . . . | |o+. ... | |Xoi= o.. | |/B=c+ooo | +----[SHA256]-----+
$ ssh-keygen -t rsa -C "username@company.com" Generating public/private rsa key pair. Enter file in which to save the key (/c/Users/ZL-arccode/.ssh/id_rsa): gitlab_gyenno_id_rsa Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in gitlab_id_rsa. Your public key has been saved in gitlab_id_rsa.pub. The key fingerprint is: SHA256:2zfJw2RePrrGc6qKqIvH3qylCmzimIpiUKKAWB87A98 username@company.com The key's randomart image is: +---[RSA 2048]----+ |ooo + o+ | |+. + = o.o . | |. . + + D + | | . + + + | | . . S . | |o . . . | |o+. ... | |Xii= o.. | |/B=c+ooo | +----[SHA256]-----+
Enter passphrase forkey'C:/Users/ZL-arccode/.ssh/github_id_rsa': Hi arccode! You've successfully authenticated, but GitHub does not provide shell access.
$ ssh -T gitlab Enter passphrase forkey'/c/Users/ZL-arccode/.ssh/gitlab_id_rsa': Welcome to GitLab, username!
$ ssh -T gitlab_gyenno Enter passphrase forkey'/c/Users/ZL-arccode/.ssh/gitlab_gyenno_id_rsa': Welcome to GitLab, username!