I was able to ssh db from web after I was done with db i was trying to ssh from db to web and is giving an error. see below
[root@db opt]# ssh web
ssh: connect to host web port 22: Connection refused
Do I need to create public/private key at DB by running ssh-keygen -t rsa