A multi-hop SSH connection tool.
Simply type :
$ gem install polyssh
$ polyssh [..list of ssh options and intermediate hosts...] [email protected]:port
You can use as many intermediate hosts as you need.
We want to connect
destination
(as user bob
, on default port)alice
, on non-default port 7222)The corresponding command using polyssh is :
$ polyssh [email protected]:7222 [email protected]
We want to connect
destination
(as user charlie
, on default port)alice
, on non-default port 7222)bob
, on default), with verbosity)Type the following command using polyssh :
$ polyssh [email protected]:7222 -verbose [email protected] [email protected]ination
Bug reports and pull requests are welcome on GitHub at https://awesomeopensource.com/project/glenux/polyssh.
The gem is available as open source under the terms of the MIT License.