Logging into the Heroku account

You can log in to your Heroku account by setting up a secure SSH session first.

Setting up SSH

If you don't use SSH already, you'll need to create a public-private key pair to push code to Heroku. This key pair is used to keep the channel of communication between the developer and Heroku secure.

Generating a public key is as simple as entering the following command:

$ ssh-keygen -t rsa
Generating public/private rsa key pair.
Enter file in which to save the key (/Users/ahanjura/.ssh/id_rsa):
Enter passphrase (empty for no passphrase): 
Enter same passphrase again: 
Your identification has been saved in /Users/ahanjura/.ssh/id_rsa.
Your public key has been saved in /Users/ahanjura/.ssh/id_rsa.pub.
The key fingerprint ...

Get Heroku Cloud Application Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.