λ ssh-keygen -t rsa -C "xxxxx@qq.com" Generating public/private rsa key pair. Enter file in which to save the key (/c/Users/You/.ssh/id_rsa): Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in /c/Users/You/.ssh/id_rsa. Your public key has been saved in /c/Users/You/.ssh/id_rsa.pub. The key fingerprint is: ...
即其中的:
1 2
Enter passphrase (empty for no passphrase): Enter same passphrase again:
$ docker exec -it gogs /bin/bash root@564c5628c7e9:/home/git/gogs# cd .. root@564c5628c7e9:/home/git# cd .ssh/ root@564c5628c7e9:/home/git/.ssh# ls authorized_keys root@564c5628c7e9:/home/git/.ssh# rm authorized_keys root@564c5628c7e9:/home/git/.ssh# ls