Heroku listens for SSL connections to the database, but does not provide a shell account as required by Putty. They say in their document :
When you find that you want to get SSH, try using tools that properly take into account the distributed Herokus environment, such as the heroku command-line tool and one-time dynodes.
Indeed, this contrasts with Webfaction , which clearly states that they offer shell access:
Full shell access for fast servers with all your favorite tools is pre-installed and supported for you.
Different companies, different services ...
source share