$ wget -qO- https://toolbelt.heroku.com/install.sh | sh
This script requires superuser access to install software.
You will be prompted for your password by sudo.
[sudo] password for sojiro:
Add the Heroku CLI to your PATH using:
$ echo'PATH="/usr/local/heroku/bin:$PATH"' >> ~/.profile
$ heroku login
Enter your Heroku credentials.
Password (typing will be hidden):
Your Heroku account does not have a public ssh key uploaded.
Could not find an existing public key at ~/.ssh/id_rsa.pub
Would you like to generate one? [Yn] Y
Generating new SSH public key.
Uploading SSH public key /home/user/.ssh/id_rsa.pub... doneAuthentication successful.