I have 2 server systems: remoteserver1 & remoteserver2. Remoteserver2 is protected from outside login so in order for me to access it, i have to ssh into remoteserver1 and then ssh into remoteserver2. I have ssh already setup to log into remoteserver1 and it works. it doesn't ask me for a password to login. However, once i get into remoteserver1, i ssh into remoteserver2 and it will ask me for a password. So, is there anyway that i can log into remoteserver2 from remoteserver1 without the need of giving the password? Both the servers share the same home directory, so the .ssh folder is the same.
Thank you in advance.