If you happen to prefer a good GUI tool, you’ll be happy to know there are a couple of outstanding graphical tools for SSH on Linux. However, there are users out there who do prefer a GUI tool, especially when working from a desktop machine to remote into and work on a server. For many admins, nothing is as efficient as the command line. Because of this, you’ll want to make the experience as efficient as possible. In fact, Secure Shell might well be one of the most-used tools in your Linux toolbox. In some instances, you’ll be SSH’ing into multiple Linux servers at once. A connection can be made by pressing Enter on the highlighted line.At some point in your career as a Linux administrator, you’re going to use Secure Shell (SSH) to remote into a Linux server or desktop. You can reverse the order by pressing the same "sort" key a second time. The display shows 4 visible columms but we treat username and server address as separate columns for sorting purposes giving us 5 controls for sorting. If your desktop captures F-key input, you can instead sort by pressing in the "Conn" text box. Use keys F1 through F5 to sort by columns 1 through 5. F1-F5 or - Sort by respective column (1-5).TAB - Moves the cursor between text boxes.Left/Right arrows - Scroll the list horizontally.Home/End - Jump marker to list first/last entry.Up/Down arrows - Move the marker the traditional way.Any exceptions should mention any package that's missing.Īs long as you're using the YAML config file without changing nccm_config_control mode, then you can use these keyboard controls: If you see Python 3 exceptions, check whether you have satisfied the dependencies. If nccm is accessible from your path and is executable, then typing nccm is all that's required to launch the TUI (terminal user interface). If no errors are returned, then you've formatted your file correctly, and it's safe to continue. Free online course: RHEL Technical Overview.Once you've finished editing, check your work with yamllint: $ yamllint ~/.config/nccm/nccm.yml Don't forget the colons-these are part of the YAML language.ĭon't worry about ordering your SSH session blocks in any specific way, because nccm gives you "sort by" options within the program. Just follow the structure-provide the connection name at the beginning of the line, with config items indented two spaces. Formatting YAML is easy, and there are examples provided in the file. You also need PyYAML, which you can install with the pip command: $ pip3 install -user PyYAML Using nccmīefore starting, edit the nccm.yml file and add your SSH configuration. On Fedora or similar, use dnf: $ sudo dnf install python3-pip yamllint On Debian or similar, use apt: $ sudo apt install python3-pip yamllint And while you're at it, install the yamllint application to help you validate the nccm.yml file. If you don't have pip installed, you can install it with your package manager. Most Python library dependencies are already present as part of Python 3 however, there are some YAML dependencies and utilities you must install. The nccm command requires Python 3 to be installed on your machine, which shouldn't be a problem on most Linux boxes. The nccm.yml file can be copied to any one of these locations, and is loaded from the first location found: You can do this in one step with the install command: $ sudo install -m755 nccm In the nccm.git/nccm directory, there are two files- nccm itself and an nccm.yml configuration file.įirst, copy the nccm script to /usr/local/bin/ and grant it executable permissions. The quickest way to get going is to clone the project from its Git repository: $ git clone nccm.git With nccm, you can connect to an SSH session of your choice with minimum distraction and minimal keystrokes. And best of all, it's straightforward to use. ![]() nccm is a simple SSH connection manager with an ultra-portable terminal interface (written in ncurses, as the project name suggests). OpenSSH is widely used, but there isn't a well-known connection manager, so I developed the ncurses SSH connection manager ( nccm) to fill that significant gap in the process.
0 Comments
Leave a Reply. |