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

Linux

1259 readers
105 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?

you are viewing a single comment's thread
view the rest of the comments
[–] 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.