港口
将本地端口绑定到通过SSH访问的远程服务器的端口。
可以使用以下命令实现相同的操作: $ ssh -L [bind_address:]port:host:hostport -i identity_file [user@]hostname
隧道是通过CLI选项创建的
用例:仅对远程主机进行SSH访问时,将远程主机上的数据库端口作为本地端口访问。
建立项目
$ mvn package
CLI参数
$ java -jar ./target/portteleport-0.0.1-SNAPSHOT.jar -?
usage: portteleport
-?,--help Print this menu
-h,--sshhost <hostname> Hostname or IP of the SSH server
-i,--rsai
评论0
最新资源