Sziasztok!
Képtelen vagyok rsync-et ssh val indítani. A kapcsolat mindíg megszakad:
rsync: connection unexpectedly closed (0 bytes received so far) [receiver]
Szerintem az ssh konfigurációjával lehet a baj.
Az interneten találtam egy ilyet, valakinek segített:
$ cat .ssh/config
ServerAliveInterval 5
ServerAliveCountMax 120
nekem nem :(
$ rsync -azPn -vvv -e "ssh -vvv" mata @ x.x.x.x :: bin/ bin/
...
debug1: Server accepts key: pkalg ssh-rsa blen 533
debug2: input_userauth_pk_ok: fp e2:47:bc:7c:60:50:3b:b3:f4:f0:73:e0:58:e1:7f:47
debug3: sign_and_send_pubkey
debug1: PEM_read_PrivateKey failed
debug1: read PEM private key done: type
Enter passphrase for key '/home/mata/.ssh/id_rsa':
debug1: read PEM private key done: type RSA
Connection closed by 192.168.1.101
rsync: connection unexpectedly closed (0 bytes received so far) [receiver]
rsync error: error in rsync protocol data stream (code 12) at io.c(600) [receiver=3.0.5]
_exit_cleanup(code=12, file=io.c, line=600): about to call exit(12)
Az autentikáció még ok, aztán vége.
Az ssh rsync nélkül megy minden gond nélkül.
Így néz ki a config fájl:
$ cat /etc/ssh/sshd_config
###############################
Protocol 2
# HostKeys for protocol version 2
HostKey /etc/ssh/ssh_host_rsa_key
HostKey /etc/ssh/ssh_host_dsa_key
#Privilege Separation is turned on for security
UsePrivilegeSeparation yes
# Lifetime and size of ephemeral version 1 server key
KeyRegenerationInterval 3600
ServerKeyBits 768
# Logging
SyslogFacility AUTH
LogLevel INFO
# Authentication:
LoginGraceTime 20
PermitRootLogin yes
StrictModes yes
RSAAuthentication yes
PubkeyAuthentication yes
IgnoreRhosts yes
RhostsRSAAuthentication no
# similar for protocol version 2
HostbasedAuthentication no
# To enable empty passwords, change to yes (NOT RECOMMENDED)
PermitEmptyPasswords no
ChallengeResponseAuthentication no
# Change to no to disable tunnelled clear text passwords
PasswordAuthentication no
X11Forwarding yes
X11DisplayOffset 10
X11UseLocalhost yes
PrintMotd no
PrintLastLog yes
TCPKeepAlive yes
Banner /etc/issue.net
# Allow client to pass locale environment variables
AcceptEnv LANG LC_*
Subsystem sftp /usr/lib/openssh/sftp-server
UsePAM yes
AllowGroups sshlogin
##########################
Várom az ötleteket.