I wanted to install pgbouncer in my postgres rds, but I am not able to access the instance, like the same way we access ec2 instances. So is there a way by which I can ssh to the machine (not psql, it's working fine).
You cannot access the rds underlying instances directly, that is by design.