0
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.
EDIT:
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[33009]: pam_unix(cron:session): session opened for user root by (uid=0)
Apr 3 11:35:01 sd-39181 CRON[33009]: pam_unix(cron:session): session closed for user root
1.I ll edit my post when I ll have the full output. 2. Will do. 3. How can I test that? 4. On both server, authorized_keys is a directory... Strange. 5. Will do. 6. Will post. – DrakaSAN – 2014-04-03T09:29:43.547
do you have a firewall running? can you check if your port is open
netstat -na | grep 22
– franklin – 2014-04-03T10:00:48.363