46 points
*
Deleted by creator
permalink
report
reply
1 point

☝️

permalink
report
parent
reply
3 points
*

I doubt this was meant for linux…

It is. You cant get ssh to print out a nice list afaik.

permalink
report
parent
reply
5 points
*
Deleted by creator
permalink
report
parent
reply
15 points

Great attempt on making a tool, I think your usecase might not be as appealing to others. If I need to list the hosts I have config for I would use: grep Host ~/.ssh/config If your list of servers is too long to remember, you might want to look at Ansible for configuration. But whatever works for you :)

permalink
report
parent
reply
8 points

You have a list of systems you’ve connected to in known_hosts, though. And the config file is easy enough to parse - throwing away the stuff you don’t care about - to expand on that list.

permalink
report
parent
reply
2 points

I could add a import from known_hosts option or something like that

permalink
report
parent
reply
12 points
*

I can (and do) just read the ~/ssh/.config file if needed, it’s quite legible. In most cases however zsh autocompletion does all the heavy lifting for me (ssh ser(tab) -> ssh servername).

Still a cool idea for a script, and if it works well for you more power to you, just saying there’s more ergonomic and universally applicable solutions. (Only mentioning this since you said “I couldn’t find a decent solution to this problem”).

permalink
report
parent
reply
10 points

Just on the side, Openssh and ssh config works just as well on Windows.

permalink
report
parent
reply
5 points

Multiple ssh connections should really just be managed using Ansible.

permalink
report
reply
14 points

isnt ansible a tool for automatically deploying stuff?

permalink
report
parent
reply
5 points

Configuration management.

permalink
report
parent
reply
2 points

Wrap a nice ssh config manager around kitty ssh https://sw.kovidgoyal.net/kitty/kittens/ssh/ and it’d be pretty slick

permalink
report
reply

Linux

!linux@lemmy.ml

Create post

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

  • Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
  • No misinformation
  • No NSFW content
  • No hate speech, bigotry, etc

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

Community stats

  • 8.4K

    Monthly active users

  • 6.3K

    Posts

  • 172K

    Comments