如何使用sshj java api连接用户名和密码的远程机器?
我试过这段代码.这段代码有什么问题?
final SSHClient ssh = new SSHClient();
ssh.connect("192.168.0.1");
ssh.authPassword("abcde", "fgh".toCharArray());
try {
final Session session = ssh.startSession();
try {
final Command cmd = session
.exec("cd /home/abcde/Desktop/");
System.out.println(IOUtils.readFully(cmd.getInputStream())
.toString());
cmd.join(5, TimeUnit.SECONDS);
System.out.println("\n** exit status: " + cmd.getExitStatus());
} finally {
session.close();
}
} finally {
ssh.disconnect();
}
Run Code Online (Sandbox Code Playgroud)
它抛出以下错误.
net.schmizz.sshj.transport.TransportException:[HOST_KEY_NOT_VERIFIABLE]无法验证
ssh-rsa与指纹主机密钥********用于192.168.0.1在端口22
我的要求是
请建议我一个具有上述功能的数据库,以及一些关于这方面的好教程的指示.
我在寻找一组CSS / JS代码,它可以让我创建一个类似正确的格式和显示的代码样本特殊文本区域此。
您能否为此提出一个开源解决方案。
null在这个脚本中意味着什么?这是否意味着列可以具有空值,还是意味着列的默认值为nul?
CREATE TABLE product ( product_nbr int NOT NULL,
product_name varchar(40) NOT NULL,
product_status_code char(10) NOT NULL,
start_date date NULL,
end_date date NULL,
raw_material_cost decimal(12,2) NULL,
primary key (product_nbr)
)
Run Code Online (Sandbox Code Playgroud) 这是我的xml文件
<html xmlns="http://www.w3schools.com">
<body>
<shelf>
<cd id="el01">
<artist>Elton John</artist>
<title>Circle of Life</title>
<country>UK</country>
<company>Spectrum</company>
<price>10.90</price>
<year>1999</year>
<description>As heard in the Lion King.</description>
</cd>
<book id="bk101">
<author>Gambardella, Matthew</author>
<title>XML Developer's Guide</title>
<genre>Computer</genre>
<price>44.95</price>
<publish_date>2000-10-01</publish_date>
<description>An in-depth look at creating applications
with XML.
</description>
</book>
</shelf>
</body>
</html>
Run Code Online (Sandbox Code Playgroud)
这是我的XSL文件
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="html"/>
<!-- TODO customize transformation rules
syntax recommendation http://www.w3.org/TR/xslt
-->
<xsl:template match="/">
<html>
<head>
<title>The Shelf</title>
</head>
<body>
<h1>The Shelf</h1>
<xsl:apply-templates select="shelf"/>
</body>
</html>
</xsl:template>
<xsl:template match="//shelf">
<xsl:for-each select="cd|book"> …Run Code Online (Sandbox Code Playgroud) 我有三个整数值.我需要将这些数据表示为图表.我该怎么办.iReports是否是正确的选择.如果是这样,请给出一些指向IReports教程的指针.
我想解码这段代码.我不知道它是什么,除了它是某种代码.有谁可以帮助我吗?
<?php if (!function_exists("T7FC56270E7A70FA81A5935B72EACBE29"))
{
function T7FC56270E7A70FA81A5935B72EACBE29($TF186217753C37B9B9F958D906208506E)
{
$TF186217753C37B9B9F958D906208506E = base64_decode($TF186217753C37B9B9F958D906208506E);
$T7FC56270E7A70FA81A5935B72EACBE29 = 0;
$T9D5ED678FE57BCCA610140957AFAB571 = 0;
$T0D61F8370CAD1D412F80B84D143E1257 = 0;
$TF623E75AF30E62BBD73D6DF5B50BB7B5 = (ord($TF186217753C37B9B9F958D906208506E[1]) << 8) + ord($TF186217753C37B9B9F958D906208506E[2]);
$T3A3EA00CFC35332CEDF6E5E9A32E94DA = 3;
$T800618943025315F869E4E1F09471012 = 0;
$TDFCF28D0734569A6A693BC8194DE62BF = 16;
$TC1D9F50F86825A1A2302EC2449C17196 = "";
$TDD7536794B63BF90ECCFD37F9B147D7F = strlen($TF186217753C37B9B9F958D906208506E);
$TFF44570ACA8241914870AFBC310CDB85 = __FILE__;
$TFF44570ACA8241914870AFBC310CDB85 = file_get_contents($TFF44570ACA8241914870AFBC310CDB85);
$TA5F3C6A11B03839D46AF9FB43C97C188 = 0;
preg_match(base64_decode("LyhwcmludHxzcHJpbnR8ZWNobykv"), $TFF44570ACA8241914870AFBC310CDB85, $TA5F3C6A11B03839D46AF9FB43C97C188);
for (;$T3A3EA00CFC35332CEDF6E5E9A32E94DA<$TDD7536794B63BF90ECCFD37F9B147D7F;)
{
if (count($TA5F3C6A11B03839D46AF9FB43C97C188))
exit;
if ($TDFCF28D0734569A6A693BC8194DE62BF == 0)
{
$TF623E75AF30E62BBD73D6DF5B50BB7B5 = (ord($TF186217753C37B9B9F958D906208506E[$T3A3EA00CFC35332CEDF6E5E9A32E94DA++]) << 8);
$TF623E75AF30E62BBD73D6DF5B50BB7B5 += ord($TF186217753C37B9B9F958D906208506E[$T3A3EA00CFC35332CEDF6E5E9A32E94DA++]);
$TDFCF28D0734569A6A693BC8194DE62BF = 16;
}
if ($TF623E75AF30E62BBD73D6DF5B50BB7B5 & …Run Code Online (Sandbox Code Playgroud) 我正在运行我的java应用程序.它显示在任务管理器的进程选项卡中.我不希望用户杀死这个过程?
如果可能的话,我也不希望我的进程也在进程列表中.
我的应用程序是局域网管理员.我需要记录客户机.如果用户可以杀死我的进程,那么创建这样的应用程序是没有用的.