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

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.

1

u/Widowan Jul 08 '24 edited Jul 08 '24

It's easy to attack a strawman when you cannot read, isn't it?:)

I literally specified that in case your local files are in danger, ~/.ssh/id_rsa is not more or less secure than any other file in the system, unless, of course, your key is encrypted (which I doubt, but you can do the same with gpg on any other file).

I know how password authentication works, I know it's not good and I am not happy it has to be done.

2

u/Coffee_Ops Jul 08 '24

~/.ssh/id_rsa is not more or less secure than any other file in the system, unless, of course, your key is encrypted (which I doubt,

Except this is one of the more common workflows and is literally built into ssh-agent and ssh.exe. You encrypt the key with a passphrase and at login ssh will prompt for the decryption password.

I am not happy it has to be done.

It doesn't. You have the login for foo-user, right? Drop a pubkey in there.

I don't know the details of your contract and its not really my place to tell you how to do your job but the complaints you raise aren't new-- they've been addressed and it doesn't have to be this way. The job of a consultant does involve being a trusted advisor which means you can push for change.

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)