Bug 341070 - [RFE] plasma-nm should support NetworkManager-ssh
Summary: [RFE] plasma-nm should support NetworkManager-ssh
Status: RESOLVED FIXED
Alias: None
Product: plasma-nm
Classification: Plasma
Component: general (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR wishlist
Target Milestone: ---
Assignee: Lamarque V. Souza
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-11-18 04:02 UTC by Richard Yao
Modified: 2015-04-29 13:56 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
net-misc/networkmanager-ssh-0.9.1 (949 bytes, text/plain)
2014-12-01 11:20 UTC, Richard Yao
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Richard Yao 2014-11-18 04:02:57 UTC
plasma-nm lacks support for NetworkManager-ssh:

https://github.com/danfruehauf/NetworkManager-ssh

The SSH socks proxy is the most widely deployed VPN in the world. Having support for it would be nice.
Comment 1 Lamarque V. Souza 2014-11-23 23:57:43 UTC
It is interesting. We just need distribution to provide configuration for the server (ssh-server and firewalll configuration). Plasma NM cannot configure those settings since it run as normal user and not root.
Comment 2 Richard Yao 2014-12-01 10:34:22 UTC
(In reply to Lamarque V. Souza from comment #1)
> It is interesting. We just need distribution to provide configuration for
> the server (ssh-server and firewalll configuration). Plasma NM cannot
> configure those settings since it run as normal user and not root.

How does this case differ from networkmanager-openvpn?
Comment 3 Lamarque V. Souza 2014-12-01 10:57:58 UTC
(In reply to Richard Yao from comment #2)
> (In reply to Lamarque V. Souza from comment #1)
> > It is interesting. We just need distribution to provide configuration for
> > the server (ssh-server and firewalll configuration). Plasma NM cannot
> > configure those settings since it run as normal user and not root.
> 
> How does this case differ from networkmanager-openvpn?

For instance, Gentoo does not provide a networkmanager-ssh ebuild / package. Do other distributions pack networkmanager-ssh? If not then there is little use for it and this request will be low priority. According to rpm.pbone.net only Fedora / RHEL packs it in the "rpm world", not sure about "deb world".

I am not saying we won't implement this. Actually, this can solve a problem I have to access my company's vpn from a place I sometimes need to be, so I have a personal interest in this. Just need to finish other work before I start implementing this.
Comment 4 Richard Yao 2014-12-01 11:13:09 UTC
I wrote a networkmanager-ssh ebuild for Gentoo, but I have not committed it because I cannot test it without support in plasma-nm and/or KDE Network Management. I could go ahead and commit it, but it would remain unkeyworded until someone can test it. This seems like a chicken and egg scenario. If committing the ebuild to Gentoo's main tree will help break it, I will go ahead and do that. Otherwise, I would prefer to hold off until something I can actually use supports it.
Comment 5 Richard Yao 2014-12-01 11:20:11 UTC
Created attachment 89789 [details]
net-misc/networkmanager-ssh-0.9.1

Here is the ebuild for adding net-misc/networkmanager-ssh to Gentoo. The shell tools do not make it particularly easy to use net-misc/networkmanager-ssh without a GUI frontend. I am not aware of a way to test it without systemd+GNOME, so I have not committed it. I cannot speak for people doing RPM and DEB packaging on other distributions, but it is possible that they are in the same chicken vs. egg situation.
Comment 6 Lamarque V. Souza 2014-12-01 11:45:50 UTC
The ebuild will make my life easier to test this, thanks :-) I will try to come up with something by the end of this month. I do not use systemd in Gentoo, just hope systemd is not a requirement.
Comment 7 Richard Yao 2014-12-01 12:03:29 UTC
systemd is not a direct requirement for networkmanager-ssh. However, the ebuild's USE=gtk provides a plugin for GNOME and GNOME has had systemd dependency creep. It is likely possible to get around it, but I do not have time to dedicate to getting GNOME running on my system.

As a side note, USE=gtk is probably a misnomer in that it really for GNOME, but I called it that to be consistent with networkmanager-openvpn.
Comment 8 Jan Grulich 2015-04-29 13:56:14 UTC
Git commit d76fb3dee7ed20545ae1bb3b2a2d2e78517f6698 by Jan Grulich.
Committed on 29/04/2015 at 13:56.
Pushed by grulich into branch 'master'.

Add SSH VPN plugin
REVIEW:123465

M  +1    -1    libs/editor/simpleipv4addressvalidator.h
M  +1    -1    libs/editor/simpleipv6addressvalidator.h
M  +5    -4    vpn/CMakeLists.txt
A  +32   -0    vpn/ssh/CMakeLists.txt
A  +4    -0    vpn/ssh/Messages.sh
A  +61   -0    vpn/ssh/nm-ssh-service.h     [License: GPL (v2+)]
A  +99   -0    vpn/ssh/plasmanetworkmanagement_sshui.desktop
A  +81   -0    vpn/ssh/ssh.cpp     [License: GPL (v2/3)]
A  +41   -0    vpn/ssh/ssh.h     [License: GPL (v2/3)]
A  +221  -0    vpn/ssh/sshadvanced.ui
A  +75   -0    vpn/ssh/sshauth.cpp     [License: GPL (v2/3)]
A  +48   -0    vpn/ssh/sshauth.h     [License: GPL (v2/3)]
A  +70   -0    vpn/ssh/sshauth.ui
A  +387  -0    vpn/ssh/sshwidget.cpp     [License: GPL (v2/3)]
A  +54   -0    vpn/ssh/sshwidget.h     [License: GPL (v2/3)]
A  +333  -0    vpn/ssh/sshwidget.ui

http://commits.kde.org/plasma-nm/d76fb3dee7ed20545ae1bb3b2a2d2e78517f6698