set firewall and allow access for ssh, rsync to copy files to another laptop
by Pedroski from LinuxQuestions.org on (#4TY87)
I am trying to copy files from this laptop to another laptop on my local network. I am using my wireless connection.
On the receiving end, I installed ufw, ran this:
Quote:
Quote:
But I am getting this:
Quote:
I also tried, without success:
Quote:
Any tips please?
This laptop, at the moment, has the local ip 192.168.1.3
I am trying to copy files to 192.168.1.4
I can ping the other laptop:
Quote:


On the receiving end, I installed ufw, ran this:
Quote:
| sudo ufw allow 22/tcp sudo ufw enable |
| sudo ufw status shows 22/tcp ALLOW IN Anywhere 22/tcp (v6) ALLOW IN Anywhere |
Quote:
| pedro@pedro-newssd:~$ rsync -av -e "ssh" --progress /home/pedro/backgrounds/ pedro@192.168.1.4:/home/pedro/ ssh: connect to host 192.168.1.4 port 22: Connection refused rsync: connection unexpectedly closed (0 bytes received so far) [sender] rsync error: unexplained error (code 255) at io.c(235) [sender=3.1.2] pedro@pedro-newssd:~$ |
Quote:
| sudo ufw allow from 192.168.0.0/16 |
This laptop, at the moment, has the local ip 192.168.1.3
I am trying to copy files to 192.168.1.4
I can ping the other laptop:
Quote:
| pedro@pedro-newssd:~$ ping -c 5 192.168.1.4 PING 192.168.1.4 (192.168.1.4) 56(84) bytes of data. 64 bytes from 192.168.1.4: icmp_seq=1 ttl=64 time=14.9 ms 64 bytes from 192.168.1.4: icmp_seq=2 ttl=64 time=8.72 ms 64 bytes from 192.168.1.4: icmp_seq=3 ttl=64 time=6.55 ms 64 bytes from 192.168.1.4: icmp_seq=4 ttl=64 time=7.15 ms 64 bytes from 192.168.1.4: icmp_seq=5 ttl=64 time=10.2 ms --- 192.168.1.4 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4007ms rtt min/avg/max/mdev = 6.552/9.528/14.996/3.018 ms pedro@pedro-newssd:~$ |