Hi,

While running below cmd for backup purposes from one OpenBSD to another:

# rsync -av --progress -e 'ssh -i /my/key -l root -p 2222' ./bigfile.tar.gz 
enxio:/backup/
sending incremental file list
bigfile.tar.gz
14,843,904 0% 7.06MB/s 1:04:08 client_loop: ssh_packet_write_poll: Connection 
to W.X.Y.Z
port 2222: Permission denied

The sender is OpenBSD 6.8 with all patches applied.
The receiver (same OS version) is in different location / different ISP.

I have also another OpenBSD box in the same location as the sender (same OS 
version too),
but different DC and different network. Transfer to this another local server 
works fine -
- it has slower link and weaker CPU than remote one - not sure if it is related.

The transfer get always interrupted, but each time after different amount of 
data sent.
Tried 'ssh -vvv' but found no more details.

# rsync -av --progress -e 'ssh -vvv -i /my/key -l root -p 2222' 
./bigfile.tar.gz enxio:/backup/
[cut]
debug2: channel 0: rcvd adjust 131072
60,194,816 0% 11.72MB/s 0:38:33 debug2: channel 0: rcvd adjust 131072
debug2: channel 0: rcvd adjust 131072
[cut]
debug2: channel 0: rcvd adjust 131072
client_loop: ssh_packet_write_poll: Connection to W.X.Y.Z port 2222: Permission 
denied

rsync: [sender] write error: Broken pipe (32)
rsync error: error in socket IO (code 10) at io.c(823) [sender=3.2.3]

I don't think it is pf-related issue - I found similar mail thread here from 
February this year, no resolution.
Changing pf rules to pass in/out all does not help.
# pfctl -s rules
pass in all flags S/SA
pass out all flags S/SA

I found on the Internet that some IPS may cause such connectivity issues 
(google for SSH_EVENT_RESPOVERFLOW).
But I don't think if in such case error would be permission denied, I would 
expect just closed connection?

Please advise how can I find the root cause or workaround.
--
Aleksander

Reply via email to