this post was submitted on 13 Jul 2023
2 points (100.0% liked)

Linux

1257 readers
75 users here now

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

Related Communities

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

founded 5 years ago
MODERATORS
 

I know I can ssh directly into my servers in the terminal, but it’s a pain to manage that when I have several machines with different credentials and memorizing up addresses. Is there an easier way to do it via the terminal, or is there another software like putty on windows that could manage all of my connections for me?

top 5 comments
sorted by: hot top controversial new old
[–] monkeysuncle 8 points 1 year ago (1 children)

I just use ssh keys and put aliases for IP addresses in my ~/.ssh/config. For example:

Host router
    HostName 192.168.1.1
    User admin
    Port 227
    IdentityFile ~/.ssh/id_ed25519

That way I can just type ssh router everything works out.

[–] donio 2 points 1 year ago

This is what I do as well. A nice benefit of this approach is that other commands and applications that use ssh work as well.. scp, rsync, TRAMP in Emacs, management tools, shell scripts etc.

[–] TheFriendlyArtificer 3 points 1 year ago

Personally, I use dedicated tmux sessions predefined with various SSH commands.

But in general, if you're not using ~/.ssh/config then you're making your life more difficult.

If you wanted something a little more graphical, I have coworkers that use various configurations of Dmenu. They press a hot key and the menu displays a list of all SSH profiles in your config. They can pick one, press enter, and a terminal opens with the connection already in the process of being established.

[–] parared 2 points 1 year ago

I've been using terminus for that on other platforms, and it does seem like there's a Linux varient