com.jcraft.jsch.Session.setX11Port()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(1.0k)|赞(0)|评价(0)|浏览(117)

本文整理了Java中com.jcraft.jsch.Session.setX11Port()方法的一些代码示例,展示了Session.setX11Port()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Session.setX11Port()方法的具体详情如下:
包路径:com.jcraft.jsch.Session
类名称:Session
方法名:setX11Port

Session.setX11Port介绍

[英]sets the port (on the local side) where the X11 server (whose display we want to forward) can be found.

The default value is 6000, the default port for a X11 server on display 0.

Attention: This is effectively a static property, shared by all X11-channels, Sessions and even JSch objects. Forwarding different X11 displays at the same time (from the same Java VM) is not supported.
[中]设置可以在其中找到X11服务器(我们要转发其显示)的端口(在本地端)。
默认值为6000,即显示屏0上X11服务器的默认端口。
*注意:*这实际上是一个静态属性,由所有X11通道、会话甚至JSch对象共享。不支持同时(从同一Java VM)转发不同的X11显示。

代码示例

代码示例来源:origin: stackoverflow.com

session.setX11Port(xport+6000);

代码示例来源:origin: bradand/XMouse

session.setX11Port(xport + 6000);
session.setConfig("StrictHostKeyChecking", "no");

代码示例来源:origin: net.sf.sshapi/sshapi-jsch

session.setX11Port(configuration.getX11Port());

相关文章

微信公众号

最新文章

更多