make it Rails 3 compatible, added options to specify ssh port and username