Using a privileged port, 1024 or below, on the local computer requires the use of sudo. For information on assigning a static hostname to a dynamic IP address see Resolving a Static Hostname to a Dynamic IP Address Using DynDNS Free.ġ5548:127.0.0.1:548 is the port:host:hostport parameter where port is the port on the local computer to be forwarded to the given port on the remote computer, host is the localhost on the remote computer and hostport is the port on the remote computer. Hostname is the remote computer’s IP address or name. User is the login name on the remote computer. To create the SSH tunnel using the Mac OS X Terminal application open Terminal in the /Applications/Utilities/ folder on the local computer. Using Mac OS X Terminal to Establish the SSH Tunnel A connection can be made by pressing Enter on the highlighted line.5. 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. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |