I don't know when it stopped working working, but it was recently. Unfortunately, with almost daily updates I don't know what's caused it.
I have menu entried within my KDE which start a ssh command inside a konsole. This has worked fine for as long as I can remember (F9 or before)
However, now when I try, I get the launch feedback, the konsole window never opens.
If I open a konsole session, e.g. by right clicking the desktop, and then run the ssh command then all works fine.
Can annyone suggest how I can debug/fix the problem?
On 7 October 2016 at 16:05, Gary Stainburn gary.stainburn@ringways.co.uk wrote:
I don't know when it stopped working working, but it was recently. Unfortunately, with almost daily updates I don't know what's caused it.
I have menu entried within my KDE which start a ssh command inside a konsole. This has worked fine for as long as I can remember (F9 or before)
However, now when I try, I get the launch feedback, the konsole window never opens.
If I open a konsole session, e.g. by right clicking the desktop, and then run the ssh command then all works fine.
Can annyone suggest how I can debug/fix the problem?
That looks similar to this upstream bug: https://bugs.kde.org/show_bug.cgi?id=366793
On Saturday 08 October 2016 11:02:48 Ahmad Samir wrote:
On 7 October 2016 at 16:05, Gary Stainburn
gary.stainburn@ringways.co.uk wrote:
I don't know when it stopped working working, but it was recently. Unfortunately, with almost daily updates I don't know what's caused it.
I have menu entried within my KDE which start a ssh command inside a konsole. This has worked fine for as long as I can remember (F9 or before)
However, now when I try, I get the launch feedback, the konsole window never opens.
If I open a konsole session, e.g. by right clicking the desktop, and then run the ssh command then all works fine.
Can annyone suggest how I can debug/fix the problem?
That looks similar to this upstream bug: https://bugs.kde.org/show_bug.cgi?id=366793
I have tried replicating this bug on my system, but don't have a problem.
The bug reports that the '-c' argument is not recognised. However, when I try it, the command works, with a new konsole window opening and the ssh command working. I do get an error when I close the new child window, but that is all.
However, while testing this I found an odd behaviour. If I run the command
konsole -e bash -c "root ollie"
it works and I have a konsole session which is logged into Ollie. However, if I do
konsole -e sh -c "ssh -Y C -l root ollie"
it briefly opens the window but then immediately closes it, presumably because the SSH has failed. The odd thing is that the two commands are effectively the same thing
[gary@gary ~]$ cat bin/root #!/bin/bash
if [ "$1" == "" ]; then host=127.0.0.1 else host=`shift` fi
ssh -Y -C -l root $host $* [gary@gary ~]$
On Saturday 08 October 2016 11:02:48 Ahmad Samir wrote:
That looks similar to this upstream bug: https://bugs.kde.org/show_bug.cgi?id=366793
Interestingly, I now have two problems.
This is indeed the problem on the PC I initially experienced the problem on.
As suggested in the bug report, changing
konsole -c root ollie
to
konsole -e bash root ollie
fixed the problem.
However, I now have a similar but different problem on the laptop I used on Tuesday. Hay Ho
On Thursday 13 October 2016 09:48:31 Gary Stainburn wrote:
On Saturday 08 October 2016 11:02:48 Ahmad Samir wrote:
That looks similar to this upstream bug: https://bugs.kde.org/show_bug.cgi?id=366793
Interestingly, I now have two problems.
This is indeed the problem on the PC I initially experienced the problem on.
As suggested in the bug report, changing
konsole -c root ollie
to
konsole -e bash root ollie
fixed the problem.
Unfortunately, I cannot convert this into a usable solution in the KDE menu Editor
On Thursday 13 October 2016 10:05:56 Gary Stainburn wrote:
Unfortunately, I cannot convert this into a usable solution in the KDE menu Editor
I've been totally unable to get this working properly within KDE Menu Editor.
Instead I've had to modify my root BASH script to cope. Not pretty, but here it is in case anyone else wants it.
#!/bin/bash
user=root kons='' ssh=`which ssh` while [[ "$1" =~ ^-.* ]]; do if [ "$1" == "-u" ]; then user=$2 shift shift fi if [ "$1" == '-k' ]; then kons='y' shift fi # echo remainder $* done
if [ "$1" == "" ]; then host=127.0.0.1 else host=`shift` fi
if [ -z "$kons" ]; then $ssh -Y -C -l $user $host $* else konsole -e "$ssh -Y -C -l $user $host $*" fi
On Thu, 2016-10-13 at 10:36 +0100, Gary Stainburn wrote:
On Thursday 13 October 2016 10:05:56 Gary Stainburn wrote:
Unfortunately, I cannot convert this into a usable solution in the KDE menu Editor
I've been totally unable to get this working properly within KDE Menu Editor.
This might be better discussed on the Fedora KDE List.
poc