Bug 463896 - KDE Connect stops working and cannot find devices after installing ssh server
Summary: KDE Connect stops working and cannot find devices after installing ssh server
Status: REPORTED
Alias: None
Product: kdeconnect
Classification: Applications
Component: common (show other bugs)
Version: 22.12.0
Platform: Neon Linux
: NOR normal
Target Milestone: ---
Assignee: Albert Vaca Cintora
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-01-05 19:57 UTC by Rigoberto Leyva Salmeron
Modified: 2023-01-06 19:57 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rigoberto Leyva Salmeron 2023-01-05 19:57:26 UTC
After I installed ssh server on KDE Neon computer, KDE Connect stopped working and cannot find Available devices even though my device was connected before ssh server was installed.  

I removed and re-installed the App  from KDE Neon via Discover store but still KDE Connect not showing any available devices on KDE Neon and on Android App.

STEPS TO REPRODUCE
1.  install ssh server with command: sudo apt install openssh-server -y
2.  Run KDE Connect application
3.  No Available devices  found

OBSERVED RESULT
After installing openssh server, No devices are available to connect on KDE Neon and Android app

EXPECTED RESULT
After installing openssh server on KDE Neon, KDE keeps working.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma:  KDE NEON 
(available in About System)
KDE Plasma Version: 5.26.5
KDE Frameworks Version: 5.101.0
Qt Version: 5.15.7
Comment 1 Rigoberto Leyva Salmeron 2023-01-05 20:13:18 UTC
I also tried "Add device by IP" on KDE Connect Android app to no avail - I entered the IP address of my  KDE Neon computer (they are both in the same network without firewall)
Comment 2 Rigoberto Leyva Salmeron 2023-01-06 19:57:54 UTC
Resolved!

One of the steps of installing ssh-server was to allow port for ssh with (I supposed this created the issue)
sudo ufw allow ssh
sudo ufw enable && sudo ufw reload

I followed the guide to troubleshoot on  section  "I have two devices running KDE Connect on the same network, but they can't see each other"  at https://userbase.kde.org/KDEConnect#Running_KDE_Connect_over_OpenVPN
sudo netstat -tunelp | grep -i kdeconnect  # process was connected
netcat -z -v <your-phones-ip> 1714-1764      #  Connection was refused on all ports

I then opened firewall ports manually  and I got connection back 
sudo ufw allow 1714:1764/udp
sudo ufw allow 1714:1764/tcp
sudo ufw reload

Although the issue is now resolved I will leave the issue open to have someone take a look because I believe the issue could have been avoided if the re-installation of the KDE Connect Neon App had taken care of the firewall rules during the installation process.