Easy SSH Connection

Plasma 4 Widgets

Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net

9
Score 78.8%
Description:

Plasmoid which allow you to connect your ssh servers by one click.

Support password authentication and private/public key authentication.
Last changelog:

8 years ago

1.3
[li]Added option for 'new tab' and 'new window'.[/li][li]Used maystar's patch which fixes KDE wallet issue. Thanks maystar.[/li][li]Server list is listed alphabetically.[/li][li]Server list in configuration dialog listed alphabetically.[/li][li]Changed switches to SSH command line[/li]

1.2
[li]Added X-Plasma-NotificationArea=true in .desktop file.[/li][li]Moved ssh parameters before the hostname.[/li][li]New connection opening in an already running konsole as new tab.[/li][li]Now plasmoid find default wallet and using that.[/li]

1.1
[li]Fixed: Plasmoid doesn't save configuration of all servers. Now plasmoid use own configuration file.[/li]

1.0
[li]Fixed bug related with KDE 4.3 (tested on Fedora 12 - KDE4.3).[/li][li]In configuration dialog added switches line.[/li]

0.1b
[li]Initial version[/li]

dom87

3 years ago

I can't download the file, someone can share it. regards

Report

ScottKnauss

7 years ago

This sounds like exactly what I need, and there doesn't seem to be anything similar. Is it ever going to come back? Does anyone know here it is? Can I get a copy from somewhere else?

Report

josedesoto

6 years ago

I have clone it from github:

$git clone https://github.com/vgevorgyan/easy-ssh-connect.git

And after I have installed from the terminal, using the graphic way did not work for me (using ubuntu 13.04, kde 4.10):

$plasmapkg -i easy-ssh-connect

After this I could find it in the graphic application and add it to the desktop.

Report

Heart

7 years ago

I upgraded my 11.4 openSUSE to 12.1 and now easy ssh plasmoid doesn't work anymore.

> plasmoidviewer easy-ssh-connection-1.3.plasmoid

"This object could not be created for the followin reason:
Could not find requested component: easy-ssh-connection-1.3.plasmoid"

Report

gmolina

7 years ago

I've made a minor modification to open sftp connections in dolphin (main.py)
...
def openSubMenu(self, action):
self.selectedServer = action.data().toString()
subMenu = QMenu()
subActionGroup = QActionGroup(self)
QObject.connect(subActionGroup, SIGNAL("triggered(QAction*)"), self.openConnection)

action = QAction("ssh in new tab", self)
action.setData(0)
subMenu.addAction(action)
subActionGroup.addAction(action)

action = QAction("ssh in new window", self)
action.setData(1)
subMenu.addAction(action)
subActionGroup.addAction(action)

action = QAction("sftp", self)
action.setData(2)
subMenu.addAction(action)
subActionGroup.addAction(action)

subMenu.exec_(QCursor.pos())

def openConnection(self, action):
if int(action.data().toString()) == 2:
self.openSFTPConnection(action)
else:
self.openSSHConnection(action)

def openSFTPConnection(self, action):
server = self.servers[self.selectedServer]

url = "sftp://"
if server.login != "":
url += server.login + "@"
url += server.hostIP + ":" + str(server.port) + "/"
subprocess.Popen(str("dolphin " + url), shell=True)

...
Enjoy!

Report

redmoustache

7 years ago

It looks like the download link is broken at the moment. I had to download and zip it up from git.

Also, it would be very handy if it could pull a list of servers from konsole's bookmarks.

Thanks much!

Report

Gilde

8 years ago

hi,

thanks for your great plasmoid.

it is maybe possible also to integrate sshfs to mount a special folder from the ssh server on the local machine?

best regards

gilde

Report

NismoC32

8 years ago

When I add Easy SSH to my desktop I get the following message in the widget window:
"Could not open the easy-ssh-connection package for the Easy SSH connection widget"

I'm running Gentoo ~amd64.

What is this easy-ssh-connection package ?

Report

NismoC32

8 years ago

When I add Easy SSH to my desktop I get the following message in the widget window:
"Could not open the easy-ssh-connection package for the Easy SSH connection widget"

I'm running Gentoo ~amd64.

What is this easy-ssh-connection package ?

Report

craffop

8 years ago

This works pretty well.
I just have one issue, the terminal width is somehow very small. So it keeps wrapping around. I looked in konsole help and do not see anything there. Anyone have any idea what option I can add to make it wider?

Report

alessio1972

8 years ago

Hi.
It works very well here, on a Kubuntu Lucid Linx 10.04 amd64. I love it.
There is just a bug if you use the private key. In the main.rc file the login field dos not contain the username, but the complete path to the key.

Report

alessio1972

8 years ago

I got around the problem writing, in the "Switches" field:
-i /path_to_key
selecting the "Password" checkbox and putting the password for the key in the field.
Thank you again for the plasmoid!

Report

nsj

8 years ago

The concept is fantastic. Im eagering to use it, but I was not able to. It does not work in Slackware 64 13.1, does not work on kubuntu 10.04 and does not work on kubuntu 10.10.

Report

C

vgevorgyan

8 years ago

I'm using plasmoid under my kubuntu 10.10 and it's working well.

Can you write what is the problem? not installing, not opening server list ... etc ?

Report

normanschmidt

8 years ago

I was using version 1.2 when I posted the previous comment, now I installed a stock Ubuntu 10.04.2 LTS, and installed the 1.3 version. I can add hosts, but cannot edit nor remove them (In 1.2 I was able to). The behaviour on connect is the same: When I select a host and choose new window, a new konsole window appears very quickly and vanishes. When I select a new tab and I have an existing konsole window, a new tab appears very quickly and then also vanishes. Is there a log anywhere? I monitored most files in /var/log, but couldnt find anything there. Any help will be greatly appreciated, Im looking forward to use your tool.

Report

normanschmidt

8 years ago

And now it is working perfectly. It was just a matter of restarting KDE after installing version 1.3. Excelent work, very useful tool!
A suggestion: Implement an expect or REXX sintax aware field at the admin interface where you can put commands you want to run after connecting, for each connection. This would make this tool perfect.

Report

normanschmidt

8 years ago

I just noticed an annoying problem. It works perfectly only if you use konsole at the default 80x24 cols/rows text resolution. I always use a small font and maximize the konsole window to get higher text resolutions, and the konsole started by this plasmoid doesnt work right in higher texts resolutions. It overlaps characters when typing lines bigger than 80 chars, locks the 80x24 resolution inside console text editors leaving big areas unused/unscrolled (nano,pico,joe), and sometimes looses the text cursor.

Report

sabutilnik

7 years ago

I've modified runPassword.py to solve that problem, now it looks like this:


import signal, termios, struct, fcntl,time
global_pexpect_instance = None

def sigwinch_passthrough (sig, data):
# Check for buggy platforms (see pexpect.setwinsize()).
if 'TIOCGWINSZ' in dir(termios):
TIOCGWINSZ = termios.TIOCGWINSZ
else:
TIOCGWINSZ = 1074295912 # assume
s = struct.pack ("HHHH", 0, 0, 0, 0)
a = struct.unpack ('HHHH', fcntl.ioctl(sys.stdout.fileno(), TIOCGWINSZ , s))
global global_pexpect_instance
global_pexpect_instance.setwinsize(a[0],a[1])

try:
import pexpect
import sys

command = sys.argv[1]
password = sys.argv[2]
child = pexpect.spawn(command)
signal.signal(signal.SIGWINCH, sigwinch_passthrough)
global_pexpect_instance = child
child.expect("assword:")
child.sendline(password)
child.interact()
except ImportError:
print "Module pexpect not found, please install pexpect package."

i hope it works for you.

Report

boza

8 years ago

I've Slackware 13.0 and KDE 4.2.4 , succesfuly install the plasmoid but nothing happens when I've try to use it (I've add several servers in list but they did not show when I want to choose one)

Report

C

vgevorgyan

8 years ago

Can you try to run plasmoid by plasmoidviewer?

Just download plasmoid and in konsole type:
plasmoidviewer easy-ssh-connection-1.3.plasmoid
Try to use and send error messages that you will see in konsole.


Thank you for help,
Vardan

Report

marthy

8 years ago

great plasmoid.
what's mean switches ?

Report

moonwalker

8 years ago

First, thanks for the program - it does make life much easier. However I found an issue: if I connect to SSH server using this plasmoid then programs like less or mc become very hard to use if possible at all. In case of less only top and bottom line show any text, the rest of the screen stays black. mc turns into complete mess very quickly, text being out of place. I don't have this issues when I manually open konsole and ssh to server.

Report

maystar

8 years ago

Hey,

Great widget! Even really handy that new konsole tabs automatically logs on the last connected ssh server.

Unfortunately the whole plasma desktop now waits for the kwallet password input, which is needed by the plasmoid. After entering the password the desktop starts indeed but it has just a few icons in the tray. Most of them are invisible because the icons haven't been loaded. I'm not shure whose fault this is but in my system this behavior started after installing the ssh easy connection plasmoid. If I restart plasma everything is fine again.

Report

C

vgevorgyan

8 years ago

Hi

This problem should be fixed on 1.3 version.

Can you confirm that it was fixed?

Thanks

Report

Naraku

8 years ago

It is really nice!

Just two points:
- still problems with finding the correct wallet (it always asks to open the non-standart one)

- would be great if you could add a option, that no konsole window will be opened

Good work. :)

Report

8 years ago

1.3
[li]Added option for 'new tab' and 'new window'.[/li][li]Used maystar's patch which fixes KDE wallet issue. Thanks maystar.[/li][li]Server list is listed alphabetically.[/li][li]Server list in configuration dialog listed alphabetically.[/li][li]Changed switches to SSH command line[/li]

1.2
[li]Added X-Plasma-NotificationArea=true in .desktop file.[/li][li]Moved ssh parameters before the hostname.[/li][li]New connection opening in an already running konsole as new tab.[/li][li]Now plasmoid find default wallet and using that.[/li]

1.1
[li]Fixed: Plasmoid doesn't save configuration of all servers. Now plasmoid use own configuration file.[/li]

1.0
[li]Fixed bug related with KDE 4.3 (tested on Fedora 12 - KDE4.3).[/li][li]In configuration dialog added switches line.[/li]

0.1b
[li]Initial version[/li]

12345678910
219
product-maker eck0 Oct 12 2011 9 excellent
product-maker strall Oct 02 2011 9 excellent
product-maker oor Jun 28 2011 9 excellent
product-maker Quintasan1 Jun 22 2011 9 excellent
product-maker gamdoodyandgam Jun 03 2011 9 excellent
product-maker watho May 31 2011 9 excellent
product-maker PiotrBo Apr 08 2011 9 excellent
product-maker Gilde Apr 02 2011 9 excellent
product-maker zakaqere Mar 22 2011 9 excellent
product-maker alessio1972 Feb 23 2011 9 excellent
product-maker tobru Feb 09 2011 9 excellent
product-maker matejv Feb 06 2011 9 excellent
product-maker tamra Jan 31 2011 9 excellent
product-maker mirzaD Jan 15 2011 9 excellent
product-maker riyad Jan 03 2011 9 excellent
product-maker jaitrum Jan 03 2011 9 excellent
product-maker boza Dec 16 2010 9 excellent
product-maker russjeffcoat Dec 08 2010 9 excellent
product-maker wneiva Nov 29 2010 3 bad
product-maker vitoubien Nov 27 2010 9 excellent
product-maker RyanMcCoskrie Nov 20 2010 3 bad
product-maker Count: 4 Rating: 5.0
File (click to download) Version Description Downloads Date Filesize DL OCS-Install
Pling
*Needs ocs-url or ocs-store to install things
Details
license
version
1.3
updated Mar 18 2011
added Mar 06 2010
downloads today
0
page views today 2