1/27/2024 0 Comments Ssh tunnel manager linuxIf the group does not exists yet it will be created. In short version the syntax us as following $ ssh-tunnel-manager tunnel add -g To get a help for creating use $ ssh-tunnel-manager tunnel add -help Listing all configured tunnels $ ssh-tunnel-manager tunnel list If you remove all tunnels from a group the group itself is also removed. If the group exists on create the tunnel will just added to the existing group. Each tunnel must have a group assigned - beside the list option you always need to provide the group. In most cases you need to setup a bunch of tunnels and it would be just bad usability to specify all tunnels (tho in theory you can have a group with only one tunnel so you are not limited to to this). Tunnel groups are just names which holds a list of tunnels. Note that the server needs to support this! Removing connection profiles $ ssh-tunnel-manager profile remove If you want to enter your password but not store it use the -password-interactive instead of -p. PASSWORD if you want to connect to this host using a password ( NOT RECOMMENDED). ~/.ssh/id_dsa ( NOTE: its not the public key!) You can create as many as you want, but use only one at a specifies the username you want to use to connect to the host to tunnel thru.įILE TO PRIVATE KEY is a SSH identity file you want to use. NAME is the name you use on command line to specify the connection profile you want to use. To get help adding a connection profile use $ ssh-tunnel-manager profile add -helpīasically the following syntax $ ssh-tunnel-manager profile add Showing the configured connection profiles $ ssh-tunnel-manager profile list You can specify a profile as default so you don't have to specify a profile when you want to start tunnels. This may be handy if you have multiple VPNs but still have the same remote services you want to tunnel to. Connection profilesĬonnection profiles are used to switch between hosts you tunnel thru. You can configure everything with the CLI interface. You don't have do edit the configuration manually. The use would then be $ ssh-tunnel-manager -v VAR:VALUE -v VAR2:VALUE2Ĭonfiguration files are stored in the OS config directory tunnel-manager/tunnel-manager.yml. If the tunnels to run requires variables to be set you'll be prompted so. You can use the -t or -tunnel option multiple times or use a comma separated string to run more tunnel groups $ ssh-tunnel-manager -p -t -t If you want a specific connection profile or don't have one set as default use $ ssh-tunnel-manager -p If you have a file call ssh-tunnels.yml where tunnels are setup it's even easier $ ssh-tunnel-manager If you want to run a configured tunnel and setup a profile as default you simply run $ ssh-tunnel-manager -t You might better go first reading the configuration section. If you haven't done any configuration you would be prompted on first startup. The configuration section will cover the most, generally you can always use $ ssh-tunnel-manager -help The CLI interface uses commands and sub commands to configure the tunnels. Installation $ npm install -g ssh-tunnel-manager
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |