Eu tenho dois servidores, o primeiro (destino) está executando meu site e não pode ser reinicializado. O segundo é o meu servidor de backup. Quero que o backup seja capaz de rsync segmentar.
Eu posso conectar aos dois com putty no windows, mas quando tento fazer o ssh de backup para target, recebo um timeout. (Mas o alvo pode fazer o ssh para fazer backup ...).
No servidor de backup, eu tenho:
backup$ssh -V
OpenSSH_6.1p1 Debian-4, OpenSSL 1.0.1c 10 May 2012
Mas no servidor segmentado:
target$ ssh -V
OpenSSH_5.9p1 Debian-5ubuntu1.2, OpenSSL 1.0.1 14 Mar 2012
Acredito que não seja possível obter backup para o ssh a ser segmentado. Eu tentei apt-get update && apt-get install ssh
e apt-get install openssh-server
, mas a versão continua sendo a mesma.
Como posso atualizar o servidor ssh do alvo para poder se conectar a ele a partir do backup?
EDITAR:
Adicionou o ssh -vvv
se alguém se perguntar:
backup$ ssh -vvv vod.121video.com
OpenSSH_6.1p1 Debian-4, OpenSSL 1.0.1c 10 May 2012
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug2: ssh_connect: needpriv 0
debug1: Connecting to target [XXX.XXX.XXX.XXX] port 22.
debug1: connect to address XXX.XXX.XXX.XXX port 22: Connection timed out
ssh: connect to host target port 22: Connection timed out
EDIT2:
Com o arquivo de configuração da resposta de Sylvain:
backup$ ssh -vvv target
OpenSSH_6.1p1 Debian-4, OpenSSL 1.0.1c 10 May 2012
debug1: Reading configuration data /root/.ssh/config
debug1: /root/.ssh/config line 1: Applying options for target
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug2: ssh_connect: needpriv 0
debug1: Executing proxy command: exec ssh proxyserver nc -q0 target 22
debug1: permanently_set_uid: 0/0
debug1: permanently_drop_suid: 0
debug3: Incorrect RSA1 identifier
debug3: Could not load "/root/.ssh/id_rsa" as a RSA1 public key
debug1: identity file /root/.ssh/id_rsa type 1
debug1: Checking blacklist file /usr/share/ssh/blacklist.RSA-2048
debug1: Checking blacklist file /etc/ssh/blacklist.RSA-2048
debug1: identity file /root/.ssh/id_rsa-cert type -1
debug1: identity file /root/.ssh/id_dsa type -1
debug1: identity file /root/.ssh/id_dsa-cert type -1
debug1: identity file /root/.ssh/id_ecdsa type -1
debug1: identity file /root/.ssh/id_ecdsa-cert type -1
ssh: Could not resolve hostname proxyserver: No such file or directory
ssh_exchange_identification: Connection closed by remote host