$ cat ~/.ssh/id_rsa.pub cat: /home/vagrant/.ssh/id_rsa.pub: そのようなファイルやディレクトリはありません $ cd ~/.ssh $ ssh-keygen -t rsa -C mail@mail <----自分のメールアドレス Generating public/private rsa key pair. Enter file in which to save the key (/home/vagrant/.ssh/id_rsa): <-----Enterを押す Enter passphrase (empty for no passphrase): <-----Enterを押す Enter same passphrase again: <-----Ente
![BitbucketでSSH接続 - Qiita](https://cdn-ak-scissors.b.st-hatena.com/image/square/68d5d5039e9e1b9f1c47329d43654b98c511f451/height=288;version=1;width=512/https%3A%2F%2Fqiita-user-contents.imgix.net%2Fhttps%253A%252F%252Fcdn.qiita.com%252Fassets%252Fpublic%252Farticle-ogp-background-412672c5f0600ab9a64263b751f1bc81.png%3Fixlib%3Drb-4.0.0%26w%3D1200%26mark64%3DaHR0cHM6Ly9xaWl0YS11c2VyLWNvbnRlbnRzLmltZ2l4Lm5ldC9-dGV4dD9peGxpYj1yYi00LjAuMCZ3PTk3MiZoPTM3OCZ0eHQ9Qml0YnVja2V0JUUzJTgxJUE3U1NIJUU2JThFJUE1JUU3JUI2JTlBJnR4dC1jb2xvcj0lMjMyMTIxMjEmdHh0LWZvbnQ9SGlyYWdpbm8lMjBTYW5zJTIwVzYmdHh0LXNpemU9NTYmdHh0LWFsaWduPWxlZnQlMkN0b3Amcz0yZWNmNWM3OGE3YTdhNzA2N2Q5MGJjM2VlZWE0ZjQxMA%26mark-x%3D142%26mark-y%3D57%26blend64%3DaHR0cHM6Ly9xaWl0YS11c2VyLWNvbnRlbnRzLmltZ2l4Lm5ldC9-dGV4dD9peGxpYj1yYi00LjAuMCZoPTc2Jnc9NzcwJnR4dD0lNDBzaGltaXNoaW1penUmdHh0LWNvbG9yPSUyMzIxMjEyMSZ0eHQtZm9udD1IaXJhZ2lubyUyMFNhbnMlMjBXNiZ0eHQtc2l6ZT0zNiZ0eHQtYWxpZ249bGVmdCUyQ3RvcCZzPWQwOWQ2YjIyODQwN2MyNmZiOTBhZDAzYTNjNzUxM2I4%26blend-x%3D142%26blend-y%3D486%26blend-mode%3Dnormal%26s%3De55cc400e797ceaa572b7fb92c03cc17)