27

Is there an application (or GnomePanel plugin) that allows one to store SSH connection information and open a terminal on click?

I know that Nautilus does that using Ubuntu's "Password and Encryption keys", but is there such a thing for a terminal?

9

Much simplier method than installing an app.

Create a directory on your desktop (for example, call it ssh).

In your favourite editor, create a file called [servername i want to ssh to].desktop

In that file

[Desktop Entry]
Version=1.0
Type=Application
Name=SERVER NAME
Comment=ssh to SERVER NAME
Exec=ssh user@SERVER NAME
Icon=
Path=
Terminal=true
StartupNotify=false

Now mark the file as executable. Done.

Hope that helps.

3
  • 1
    +1 for the Desktop entry approach: simple, clear and manageable! Just keep in mind that when your username has a \ in it (as with likewise-open ids where the NT domain has to be prepended), the ssh command itself needs 2 backslashes, and the command in the .desktop entry thus needs 4, eg [domain]\\\\[username]@[server]
    – 4levels
    May 20 '15 at 9:10
  • 2
    Hello , did you test it on an Ubuntu 20.04 ? Seems that's stop working Apr 28 '20 at 10:37
  • Thanks, it's still useful today. Even simpler using a menu editor like menulibre. Jul 26 at 15:57
7

Are you just bothered about punching in your details each time you can use SSH key authentication so your user can log into other computers without a password. It's fairly powerful stuff and quite simple to get started.

First you need to generate a key for your user. This comprises of a public key and a private key. (Sidebar: Never ever, ever, ever give anybody your private key.) Just run:

ssh-keygen

It'll ask if you want a passphrase that has to be entered each time you use the key. That's up to you. Completely optional.

When you're done there you just upload your key to the server. Thankfully there's even a little application to handle that for you:

ssh-copy-id remote_user@remote_host

Then ssh remote_user@remote_host should just log in without prompt.

For your one-click launchers, you can just make a launcher with the following sort of command:

gnome-terminal -e "ssh remote_user@remote_host"

I also write little alias scripts in my ~/.bash_aliases file that fire off the connection (because I'm really lazy!).

1
  • Thanks for the comment! I am using publickey where available, unfortunately some sites I am working with (i'm a web-developer) only allow keyboard auth Jan 17 '11 at 16:24
7

Gnome Connection Manager is definately worth a try. it offers some interesting features and is usable, though it's not quiet mature yet.

2
  • This is a next example. that simple applications are the good ones. GCM acts only as a SSH connection manager and nothing else - and that is its advantage. Nov 9 '18 at 17:19
  • Tried that, installation works but does not launch. I have to create my script to run it, like python3 gnome-connection-manager.py in the desktop file. Otherwise is good. Still updating till today(2021), which is good.
    – WesternGun
    Jul 29 at 10:17
4

Take a look at SSHMenu - it integrates into the Gnome panel, and allows opening a terminal per connection.

sshmenu-gnome

sudo apt-get install sshmenu-gnome
1
  • 2
    Tried that, great app. But it only works with publickey authentication. At least I didn't find a way to provide a password Jan 17 '11 at 16:38
3

Take a look at 'sshch'

enter image description here

This util store SSH connection information, but uses curses interface.

2
  • really nice app!
    – Vano
    Apr 30 '18 at 8:45
  • I was hoping something like this existed, thanks!
    – jamzsabb
    Jun 3 '18 at 17:00
3

I've been using Remmina in Ubuntu for a while, I think it works very well and It's easy to use. It's very similar to Putty and it has support for different protocols like DP, VNC, SPICE, NX, XDMCP, SSH and EXEC.

Remmina main window

1

I have made for myself a simple ssh manager for ubuntu. If you want, you can also try it: https://github.com/Doka-NT/ssh-manager

All configs are in .json file. By default it use gnome-terminal, but you can change it to some other

1

You can try redial. It is a simple shell application that manages your SSH sessions on the Unix terminal.

pip3 install redial

Features:

  • add folder
  • copy ssh key
  • remove connection
  • edit connection
  • dynamic, local and remote port forwarding
  • midnight commander

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.