Some windows ssh tools ( Superputty , mremoteng ) have Connections tab .

Any Linux tools with similar feature .Both GUI / CLI tools are welcome.

  • Need to restore session files ( from Superputty or mremoteng )
  • krash@lemmy.ml
    link
    fedilink
    arrow-up
    3
    ·
    edit-2
    10 months ago

    You can make your own bash/ fish/ python menu pretty easily if what you want is to have an “address book” or a speed dialer to you’re ssh servers. Let me know if you’re curious and I could share mine.

    EDIT: so what I use is a fish function, and my “adress book” is hardcoded in it. It was a quick and dirty POC that never moved passed the “conecpt” stage, but ideally - these values should be stored in a csv file so it can be accessible from whatever program you’re making / using.

    This can surely be easily adaptable to bash or python through a coding LLM for the lazy.

    The code below should be in ~/.config/fish/functions/ssh_menu.fish for fish shell.

    function ssh_menu
        set -l servers[1] "user@ip_or_domainname"
        set -l servers[2] "user@ip_or_domainname"
        set -l servers[3] "user@ip_or_domainname"
        set -l servers[4] "user@ip_or_domainname"
        set -l servers[5] "user@ip_or_domainname"
    
        clear
        for i in (seq (count $servers))
            echo "[$i] $servers[$i]"
        end
    
        echo -n "Enter the number of the server to SSH into: "
        read choice
    
        if test -n "$choice" -a "$choice" -ge 1 -a "$choice" -le (count $servers)
            set server_info $servers[$choice]
            set -l server_ip (echo $server_info | awk '{print $NF}' | tr -d '()')
            echo "Connecting to $server_ip..."
            ssh $server_ip
        else
            echo "Invalid choice."
        end
    end