I have an application called ROCServerEntrypoint which is using spring-boot. I'd like to run this Spring Boot application that embeds CRaSH shell. I have added the following maven dependency.
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-remote-shell</artifactId>
<version>1.3.3.RELEASE</version>
</dependency>
As required I have added the following configuration in my spring beans.xml to enable remote access via 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>
I am lost as to how to go about it next. I'm new to linux system concepts. Kindly explain briefly what does it mean to access it remotely and how does crash shell helps in this?
Also,Tried connected via SSH, it throws the following
[priyanka@priyanka-ux programs]$ ssh -p 2000 admin@localhost
ssh: connect to host localhost port 2000: Connection refused
Is there something I'm missing here?