首页 \ 问答 \ 使用java和ssh密钥连接到远程服务器(Connecting to remote server using java and ssh key)

使用java和ssh密钥连接到远程服务器(Connecting to remote server using java and ssh key)

有没有人有任何使用java和ssh密钥连接到远程服务器的代码。 我们没有此服务器的密码,我们只使用我们的用户名和我们的ssh密钥


Does anyone have any code for connecting to a remote server using java and an ssh key. We dont have a password for this server, we just use our username and our ssh keys


原文:https://stackoverflow.com/questions/1410999
更新时间:2024-03-12 15:03

最满意答案

这将在1.0中使用新的编程路线修复,您可以直接设置路线的“布局”(不再使用模板名称,因为它是错误的)。 在0.x你有点卡住了。 通过足够的努力,你可以将这样的东西破解到位,但这可能意味着在某种程度上要求盖茨比。


This will be fixed in 1.0 with the new programmatic routes where you'll be able to directly set the "layout" (not using template name anymore as it was wrong) for routes. In 0.x you're a bit stuck. With sufficient effort you could hack something like this into place but it'd probably mean forking Gatsby somewhat.

相关问答

更多
  • 所以看起来我可以通过传递道具和查询index.js页面上的数据来解决这个问题。 解: Index.js: import React from 'react'; import Products from '../components/products/image'; const IndexPage = props => (
    ); e ...
  • 您不应该使用GatsbyJS修改public forlder中的任何文件。 相反,我建议您自定义html.js文件 。 为此,首先运行: cp .cache/default-html.js src/html.js 你应该在html.js中有html.js文件。 现在,您可以将