I’ve been working on a project that I need constant access (and executing commands) among at least 3 hosts in work. I’ve been using SSH’s Host function to manage which host I’m connecting to. However, I find it increasingly annoying that I can’t see which host I’m connected to via the tab on my terminal emulator (I’m using Windows Terminal on Windows and Konsole on Linux).

Is there a good SSH GUI client that can show which host a session is connected to? I’ve tried Termius. But $10 per month is too expensive to me for what I’m doing (and I don’t need most of the paid feature).

  • jmp242@sopuli.xyz
    link
    fedilink
    arrow-up
    3
    ·
    1 year ago

    We make the prompt be user@hostname so no matter what you use it shows what host you’re on. This is configurable in .bashrc iirc.

    I might also recommend tmux, there’s a script you can use to also set prompt in the window view. Though this is best used as a jumpserver setup.

  • rolaulten@lemmy.world
    link
    fedilink
    arrow-up
    2
    ·
    edit-2
    1 year ago

    Two ways come to mind.

    One is tmux. The other is editing your .bashrc (I’m assuming your shell is bash, adjust accordingly if it’s a different shell) to have relevant info in your prompt (common is username@hostname).

    Oh. also Windows Temrinal supports themes, and you can configure different commands to run when opening a given shell.

  • Brkdncr@kbin.social
    link
    fedilink
    arrow-up
    2
    ·
    1 year ago

    Mobaxterm has many more features than what you’re asking for. You might not use anything else after using it.

  • SheeEttin@lemmy.world
    link
    fedilink
    arrow-up
    1
    ·
    edit-2
    1 year ago

    Setting the terminal title is done through a standard escape sequence: https://unix.stackexchange.com/a/177598

    If it’s not working, make sure your terminal emulator is set to something like xferm, and that your console host program recognizes this sequence (which Konsole and Windows Terminal should).

  • rammer@sopuli.xyz
    link
    fedilink
    arrow-up
    1
    ·
    1 year ago

    You definitely should put username@hostname in your prompt. This has saved me from so many mistakes. And if your shell supports it use red if the user is root.