I am trying to set up passwordless connection between two server, backup and prod.
prod can connect passwordless without problem to backup, but if I try the opposite way, I just get timeout.
prod$ ls ~/.ssh/authorized_keys backup.pub backup$ ls ~/.ssh/authorized_keys prod.pub prod$ ssh backup Welcome to Ubuntu 13.04 (GNU/Linux 3.8.0-31-generic x86_64) ... backup$ ssh prod ssh: connect to host XXX.XXX.XXX.XXX port 22: Connection timed out
What am I missing? Also, obviously I can t reboot prod.
backup$ ssh -v root@XXX.XXX.XXX.XXX OpenSSH_6.1p1 Debian-4, OpenSSL 1.0.1c 10 May 2012 debug1: Reading configuration data /root/.ssh/config debug1: Reading configuration data /etc/ssh/ssh_config debug1: /etc/ssh/ssh_config line 19: Applying options for * debug1: Connecting to XXX.XXX.XXX.XXX [XXX.XXX.XXX.XXX] port 22. debug1: connect to address XXX.XXX.XXX.XXX port 22: Connection timed out ssh: connect to host XXX.XXX.XXX.XXX port 22: Connection timed out
When using tail -f, this appear after the timeout:
Apr 3 11:35:01 sd-39181 CRON: pam_unix(cron:session): session opened for user root by (uid=0) Apr 3 11:35:01 sd-39181 CRON: pam_unix(cron:session): session closed for user root