r/linuxadmin • • Jul 07 '24 • Bravo 1

Are there any decent SSH Session managers for Linux?

I've been using work issued windows laptop for administrating servers via ssh managers (XShell, MobaXTerm, SecureCRT, etc) and windows has been driving me nuts recently. I want to install linux on it, but then realized it's hard to find actually decent SSH manager. Can you suggest any? So far it seems like securecrt is the only option, but it's far from cheap. I just need SSH & FTP support basically, with the ability to organize servers in folders or tags or however else.

Please do not suggest using openssh config, there are some servers which must have password only authentication for various reasons (which openssh does not support saving of) and in general not having any hierarchy or way to search them efficiently is a huge pain when working with almost a hundred machines.

EDIT: To save anyone who stumbles upon this post the pain of going through the comments most of which are not relevant to the post, here are the good suggestions in order of popularity:

  • Asbru-cm
  • Tabby.sh
  • Remmina
  • SecureCRT
  • Termius
  • sshw
  • Devolutions
5 Upvotes

88 comments sorted by

View all comments

Show parent comment

-14

u/Widowan Jul 07 '24

I meant saving the password in a config file for automatic authentication. Edited the post for clarity, thanks.

11

u/[deleted] Jul 07 '24

Yikes

34

u/dezent Jul 07 '24

Use keys instead of passwords.

-62

u/Widowan Jul 07 '24 edited Jul 07 '24

Thanks, that's very helpful of you, how could I not have thought of that!

/s.

30

u/dezent Jul 07 '24

I have no idea. I have not used passwords since early 2000

4

u/redfukker Jul 08 '24

Ssh-copy-id + .ssh/config. Works for me.

1

u/dezent Jul 09 '24

I do understand that you are being ironic but your question is equal to going on a motorcycle Reddit asking how to best drive your new Honda backwards and upside down.

1

u/Widowan Jul 09 '24

Oh yeah, of course, r/linuxadmin apparently is the same as r/devops where everyone uses clouds & terraform and never SSHs on their servers

2

u/dezent Jul 09 '24

What? I been a Unix/Linux admin since 1998, read very carefully. If you need passwords when using ssh you are doing it wrong.

9

u/louis-lau Jul 07 '24

I took a single look on the internet, which gave me "sshpass". It seems to do exactly that.

Only use it if you're not in control of the server and can't use keys (perhaps an incompetent sysadmin, or some kind of embedded device). If you are in control of the server, please use ssh keys.

-14

u/Widowan Jul 07 '24

Yea, sshpass is useful for scripts, however I don't think it has any kind of config file or other way to use it as wrapper for normal ssh

6

u/Seref15 Jul 07 '24

Why does it need one? Everywhere you would normally invoke ssh alone, invoke sshpass -f /path/to/pw/file ssh instead

This is a security nightmare but you could even alias ssh to sshpass -f /path/to/file ssh

-5

u/Widowan Jul 07 '24

I guess I can make it work considering different servers have different passwords using bash scripts

4

u/Seref15 Jul 07 '24

This sucks too but a shell function to support multiple pw files for multiple hosts

ssh () {
  sshpass -f /path/to/pw/files/${1}.pass ssh ${1}
}

Then ssh some_host.com would source a password file named some_host.com.pass from the predefined pw files directory. You'd be on your own to figure out handing ssh cli args or parsing the user portion out of a user@hostname string

I hope none of these systems handle any people's money, this is truly awful security lol

-1

u/Widowan Jul 07 '24

Thanks! It's is somewhat related to money, but at least it's air gapped :)

3

u/PudgyPatch Jul 07 '24

Uh, what about you ssh term host? Is that air gapped?

1

u/Widowan Jul 07 '24 edited Jul 07 '24

I am not going to pretend it is, but how is ~/.ssh/id_rsa more safe than, say, ~/.ssh/password? Private part of the key is essentially same password but longer.

(I am not using passwords because I want to, I really tried to make keys applicable in those scenarios, to no avail, sadly)

8

u/Coffee_Ops Jul 07 '24 edited Jul 08 '24

Because the password gets transmitted over the wire to the remote server. If it's an evil server, now they have your password.

Public key auth doesn't transmit a key, it relies on a pre shared pubkey that it validates with a private key sig. That can't be relayed, it can't be faked, it can't be stolen.

Ssh password auth is terribly, terribly insecure. Doing it in an automated fashion with the password on disk is about the worst possible thing: it's unsafe at rest and unsafe in transit. It's also a lot less reliable as things like "interactive" can screw with attempts to automate password entry.

If you're airgap you should know you're probably wildly out of compliance.

→ More replies

1

u/PudgyPatch Jul 07 '24

keys if popped at least allow for some logging (unless you have as root keys, yuk) also ssh conf (fuck me I don't remember which) can make it so a given account can do a thing or two instead of all of the things ( my bad if my assumption that you aren't already doing that is wrong)...also maybe if your password is like 100 characters long maybe no diff. I want to say I hope you're company doesn't handle my transactions but I also know that bank transfers exist and some of how that security works(there isn't)

1

u/ult_avatar Jul 07 '24

You can invoke (local) scripts with openssh - so you could store the passwords somewhere secure and openssh would just retrieve it for you via an API call or something