首页 文章

带有SSH的Apache Felix shell

提问于
浏览
7

我对如何使用Apache Felix和SSH感兴趣?我想使用SSH从远程计算机访问Felix shell . 我知道有一个telnet支持,但它太不安全了 . 有什么解决方案吗?

1 回答

  • 3

    是的,有一个,如描述here(该指南相对于eclipse 's equinox but it doesn' t)使用gogo shellapache mina sshd服务器和三个equinox console bundles(用于ssh身份验证的核心ssh插件jaas插件)的组合,您将能够连接到mina的ssh服务器和与OSGi相关的命令将由gogo shell执行 .

    你需要这些包:

    • GoGo Shell:org.apache.felix.gogo.command.jar,org.apache.felix.gogo.runtime.jar,org.apache.felix.gogo.shell.jar

    • Equinox控制台捆绑包:org.eclipse.equinox.console.jar,org.eclipse.equinox.console.supportability.jar,org.eclipse.equinox.console.jaas.fragment.jar

    • Apache Mina:org.apache.mina.core.jar,org.apache.sshd.core.jar

    • 用于记录slf4j-api.jar和slf4j-api_impl.jar

    here所述,您还需要Felix配置文件中的这些属性:

    osgi.console.enable.builtin=false 
    osgi.console.ssh=<port> 
    osgi.console.ssh.useDefaultSecureStorage=true
    

    equinox JAAS包将搜索 org.eclipse.equinox.console.authentication.config 文件,该文件将启用登录模块:

    equinox_console { 
        org.eclipse.equinox.console.jaas.SecureStorageLoginModule REQUIRED; 
    };
    

    我'm not quite sure where this will be searched using Felix (i'我不确定这是以标准的OSGi方式完成的,但 conf 目录是一个很好的猜测 .

    用户equinox / equinox已经存在,可以使用提供的控制台命令创建其他用户 .

    编辑:对于equinox控制台/可支持性软件包,您可以获得Mars版本from here扩展Add-on Bundles部分:

    org.eclipse.equinox.console_1.1.100.v20141023-1406.jar

    您还需要supportability bundle,您可以获得from here(最后一个版本是2011年) .

相关问题