我有一个使用 spring-boot 的名为 ROCServerEntrypoint 的应用程序。我想运行这个嵌入 CRaSH shell 的 Spring Boot 应用程序。我添加了以下 Maven 依赖项。
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-remote-shell</artifactId>
<version>1.3.3.RELEASE</version>
</dependency>
根据需要,我在 spring beans.xml 中添加了以下配置,以通过 SSH 启用远程访问。
<bean class="org.crsh.spring.SpringWebBootstrap" scope="prototype">
<property name="config">
<props>
<prop key="crash.telnet.port">5000</prop>
<!-- VFS configuration -->
<prop key="crash.vfs.refresh_period">1</prop>
<!-- SSH configuration -->
<prop key="crash.ssh.port">2000</prop>
<!-- Authentication configuration -->
<prop key="crash.auth">simple</prop>
<prop key="crash.auth.simple.username">admin</prop>
<prop key="crash.auth.simple.password">admin</prop>
</props>
</property>
</bean>
</beans>
我不知道下一步该怎么做。我是 linux 系统概念的新手。请简要解释远程访问它的含义以及崩溃外壳对此有何帮助?
此外,尝试通过 SSH 连接,它抛出以下
[priyanka@priyanka-ux programs]$ ssh -p 2000 admin@localhost
ssh: connect to host localhost port 2000: Connection refused
我在这里缺少什么吗?