Innov-AI     Services     Supporters     Contact     About    
SSH

All remote protocols.

ssh connectssh execute_1_cmdssh execute_n_cmdssh scp fromssh scp tossh disconnectssh disconnect all

ssh connect <sessionId> <jsonObject>


Description

    Connect to a SSH server.

Parameters

    sessionId:   The session id - string - required
    jsonObject:   The json object information - string - required
admin
ssh connect "session1" {cm get "demo_cm_ssh";};
mentdb
1

ssh execute_1_cmd <sessionId> <shellCommand>


Description

    Execute a remote command.

Parameters

    sessionId:   The session id - string - required
    shellCommand:   The shell command - string - required
admin
ssh execute_1_cmd "session1" "ps -e | grep java";
mentdb
17233 ?? 12:18.24 /usr/bin/java -cp core:lib/* -Dlog4j.configuration=file:conf/log4j.xml -Xdock:icon=images/db128x128_editor.png -Xdock:name=Mentalese Trigger -Dfile.encoding=UTF-8 -server re.jpayet.mentdb.editor.Mentalese_Trigger 57035 ?? 11:04.93 /Library/Java/JavaVirtualMachines/jdk1.8.0_152.jdk/Contents/Home/jre/bin/java -cp core:lib/autocomplete-2.6.0.jar:lib/balloontip-1.2.4.1.jar:lib/collections-generic-4.01.jar:lib/colt-1.2.0.jar:lib/commons-io-2.4.jar:lib/commons-lang3-3.4.jar:lib/concurrent-1.3.4.jar:lib/gs-algo-1.3.jar:lib/gs-core-1.3.jar:lib/gs-ui-1.3.jar:lib/gson-2.2.3.jar:lib/j3d-core-1.3.1.jar:lib/java-websocket-1.3.0.jar:lib/javax.el-3.0.0.jar:lib/javax.servlet-api-3.1.0.jar:lib/javax.servlet.jsp-2.3.2.jar:lib/javax.servlet.jsp-api-2.3.1.jar:lib/jetty-all-9.2.2.v20140723.jar:lib/jetty-jsp-jdt-2.3.3.jar:lib/jfreechart-1.5.0.jar:lib/jline-2.12.1.jar:lib/json-simple-1.1.1.jar:lib/JTattoo-1.6.11.jar:lib/log4j-1.2.16.jar:lib/quartz-2.2.1.jar:lib/quartz-jobs-2.2.1.jar:lib/rsyntaxtextarea-2.6.1.jar:lib/slf4j-api-1.6.6.jar:lib/slf4j-log4j12-1.6.6.jar:lib/stax-api-1.0.1.jar:lib/vecmath-1.3.1.jar:lib/wstx-asl-3.2.6.jar -Dlog4j.configuration=file:conf/log4j.xml -Dfile.encoding=UTF-8 re.jpayet.mentdb.editor.Mentalese_Editor localhost 9998 admin pwd pwd 10000 10000 66213 ?? 0:00.00 bash -c ps -e | grep java 66215 ?? 0:00.00 grep java 65926 ttys000 1:13.42 /usr/bin/java -server -cp core:lib/* -Dlog4j.configuration=file:conf/log4j.xml -Dfile.encoding=UTF-8 -server re.jpayet.mentdb.ext.server.Start

ssh execute_n_cmd <sessionId> <shellCommand>


Description

    Execute a remote command.

Parameters

    sessionId:   The session id - string - required
    shellCommand:   The shell command - string - required
admin
ssh execute_n_cmd "session1" "pwd;ps -e | grep java";
mentdb
<response> <validLines>/Users/jimmitry 17233 ?? 12:18.31 /usr/bin/java -cp core:lib/* -Dlog4j.configuration=file:conf/log4j.xml -Xdock:icon=images/db128x128_editor.png -Xdock:name=Mentalese Trigger -Dfile.encoding=UTF-8 -server re.jpayet.mentdb.editor.Mentalese_Trigger 57035 ?? 11:09.69 /Library/Java/JavaVirtualMachines/jdk1.8.0_152.jdk/Contents/Home/jre/bin/java -cp core:lib/autocomplete-2.6.0.jar:lib/balloontip-1.2.4.1.jar:lib/collections-generic-4.01.jar:lib/colt-1.2.0.jar:lib/commons-io-2.4.jar:lib/commons-lang3-3.4.jar:lib/concurrent-1.3.4.jar:lib/gs-algo-1.3.jar:lib/gs-core-1.3.jar:lib/gs-ui-1.3.jar:lib/gson-2.2.3.jar:lib/j3d-core-1.3.1.jar:lib/java-websocket-1.3.0.jar:lib/javax.el-3.0.0.jar:lib/javax.servlet-api-3.1.0.jar:lib/javax.servlet.jsp-2.3.2.jar:lib/javax.servlet.jsp-api-2.3.1.jar:lib/jetty-all-9.2.2.v20140723.jar:lib/jetty-jsp-jdt-2.3.3.jar:lib/jfreechart-1.5.0.jar:lib/jline-2.12.1.jar:lib/json-simple-1.1.1.jar:lib/JTattoo-1.6.11.jar:lib/log4j-1.2.16.jar:lib/quartz-2.2.1.jar:lib/quartz-jobs-2.2.1.jar:lib/rsyntaxtextarea-2.6.1.jar:lib/slf4j-api-1.6.6.jar:lib/slf4j-log4j12-1.6.6.jar:lib/stax-api-1.0.1.jar:lib/vecmath-1.3.1.jar:lib/wstx-asl-3.2.6.jar -Dlog4j.configuration=file:conf/log4j.xml -Dfile.encoding=UTF-8 re.jpayet.mentdb.editor.Mentalese_Editor localhost 9998 admin pwd pwd 10000 10000 66220 ?? 0:00.01 bash -c pwd;ps -e | grep java 66222 ?? 0:00.00 grep java 65926 ttys000 1:13.83 /usr/bin/java -server -cp core:lib/* -Dlog4j.configuration=file:conf/log4j.xml -Dfile.encoding=UTF-8 -server re.jpayet.mentdb.ext.server.Start</validLines> <exitCode>0</exitCode> </response>

ssh scp from <sessionId> <remoteFile> <localFile>


Description

    Scp from.

Parameters

    sessionId:   The session id - string - required
    remoteFile:   The remote file - string - required
    localFile:   The local file - string - required
admin
ssh scp from "session1" "remoteFile" "localFile";
mentdb
1

ssh scp to <sessionId> <localFile> <remoteFile>


Description

    Scp to.

Parameters

    sessionId:   The session id - string - required
    localFile:   The local file - string - required
    remoteFile:   The remote file - string - required
admin
ssh scp to "session1" "localFile" "remoteFile";
mentdb
1

ssh disconnect <sessionId>


Description

    Disconnect a session.

Parameters

    sessionId:   The session id - string - required
admin
ssh disconnect "session1";
mentdb
1

ssh disconnect all


Description

    Disconnect all sessions.

admin
ssh disconnect all;
mentdb
0




© 2012 - 2023