sis 11.23 - remote unix on red hat linux 5.4 without interactive shell access

Hello Team:
I am setting up remote access to a new linux machine to which we don't have interactive access.

Config on SIS is set to Enabled ssh v2 only, using key file, disabled connection caching, increased time outs. 

Default shell is bash. I am able to ssh to the remote host using the keys and get a list of  scripts in the script directory

 

 

Connect Tests fails. Not sure if there is way to get this worked out. 

 

Because of this sis is uable to pull the scripts and any script we provide via script monitor is not taken :(.

 

Copying the same setup on and testing for another linux machine that has interactive access works fine using the same keys. 

 

Thanks,

-Ravi

 

 

 

Tags:

Parents
  • Hello,

    Check under mindterm logs in Sitescope for any error.

     

    HP Software

  • error message from gui:

     

    Testing connection to : ketlx511

    Attempting SSH V2 connect

    remote command error unable to connect to server (-998)

    remote command error unable to connect to server (-998)

     

    Looks like sis is not sensing the end of line character which is a disclaimer as noted below:

     

    #### BEGIN  message #######

     

    *****************************************************
    **********
    ********** sscope is not allowed to login remotely
    **********
    *****************************************************

     

    #### END message #######

     

     

     

    Log output:

     

    2014-05-06 07:32:25,854 [http-8443-Processor24] (SSHV2Connector.java:117) DEBUG - Cleaning SSH pipe stream before the next command execution
    2014-05-06 07:32:25,855 [http-8443-Processor24] (SSHV2Connector.java:249) DEBUG - initDb(): created and cleared out buffer
    2014-05-06 07:32:25,856 [http-8443-Processor24] (SSHV2Connector.java:342) DEBUG - Starting to read, allocated buffer size is : 8192 bytes.
    2014-05-06 07:32:25,858 [http-8443-Processor24] (SSHV2Connector.java:351) DEBUG - read has not completed instantly, considering wait
    2014-05-06 07:32:25,859 [http-8443-Processor24] (SSHV2Connector.java:415) DEBUG - waiting for read to complete for 59995 ms...
    2014-05-06 07:32:28,819 [Switchboard] (SSHV2Connector.java:293) ERROR - Readfailed(callback call) : on server testremoteserver null
    2014-05-06 07:32:28,820 [http-8443-Processor24] (SSHV2Connector.java:432) DEBUG - wait completed, (waited 2961 ms)
    2014-05-06 07:32:28,822 [http-8443-Processor24] (SSHV2Connector.java:435) DEBUG - Reading from the server failed.null
    2014-05-06 07:32:28,823 [http-8443-Processor24] (SSHV2Connector.java:1208) ERROR - Connection Dropped(V2) echo sitescope-command-begin; echo testing connection; echo sitescope-command-end from testremoteserver
    2014-05-06 07:32:28,824 [http-8443-Processor24] (SSHV2Connector.java:1209) ERROR - com.mercury.sitescope.util.ssh.exception.SSHV2ReadFailedException: Reading from the server failed.
    com.mercury.sitescope.util.ssh.exception.SSHV2ReadFailedException: Reading from the server failed.
    at com.mercury.sitescope.util.ssh.SSHV2Connector.waitForReadToComplete(SSHV2Connector.java:436)
    at com.mercury.sitescope.util.ssh.SSHV2Connector.read(SSHV2Connector.java:356)
    at com.mercury.sitescope.util.ssh.SSHV2Connector.readUntilGivenSequenceSeen(SSHV2Connector.java:120)
    at com.mercury.sitescope.util.ssh.SSHV2Connector.flushInput(SSHV2Connector.java:158)
    at com.mercury.sitescope.util.ssh.SSHV2Connector$SSHV2Executor.internalExec(SSHV2Connector.java:1048)
    at com.mercury.sitescope.util.ssh.SSHExecutor.execute(SSHExecutor.java:157)
    at com.mercury.sitescope.util.ssh.SSHRemote.execute(SSHRemote.java:334)
    at com.mercury.sitescope.util.ssh.SSHManager.execute(SSHManager.java:117)
    at com.mercury.sitescope.util.cmdline.SSHCommandLine.exec(SSHCommandLine.java:159)
    at com.mercury.sitescope.util.cmdline.SSHCommandLine.exec(SSHCommandLine.java:122)
    at com.mercury.sitescope.util.cmdline.SSHCommandLine.exec(SSHCommandLine.java:118)
    at com.mercury.sitescope.util.cmdline.RemoteCommandLine.exec(RemoteCommandLine.java:152)
    at com.mercury.sitescope.util.cmdline.RemoteCommandLine.test(RemoteCommandLine.java:148)
    at com.mercury.sitescope.entities.preferences.RemoteUnixInstancePreferences.test(RemoteUnixInstancePreferences.java:367)
    at com.mercury.sitescope.api.APIPreference.test(APIPreference.java:902)
    at com.mercury.sitescope.api.PreferenceProxy.test(PreferenceProxy.java:511)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:601)
    at com.mercury.util.proxy.servlet.RemoteProxyServlet.doPost(RemoteProxyServlet.java:60)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    at sun.reflect.GeneratedMethodAccessor145.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:601)
    at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:244)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.Subject.doAsPrivileged(Subject.java:536)
    at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:276)
    at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:162)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:262)
    at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:52)
    at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:171)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:167)
    at com.mercury.sitescope.web.servlet.filter.AuthenticationFilterBase.doFilter(AuthenticationFilterBase.java:86)
    at sun.reflect.GeneratedMethodAccessor156.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:601)
    at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:244)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.Subject.doAsPrivileged(Subject.java:536)
    at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:276)
    at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:218)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:210)
    at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:52)
    at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:171)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:167)
    at com.hp.sw.bto.security.bsf.csrf.CsrfGuardFilter.doFilter(CsrfGuardFilter.java:67)
    at com.mercury.sitescope.web.servlet.filter.CSRFGuardFilterWrapper.doFilter(CSRFGuardFilterWrapper.java:44)
    at sun.reflect.GeneratedMethodAccessor157.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:601)
    at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:244)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.Subject.doAsPrivileged(Subject.java:536)
    at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:276)
    at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:218)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:210)
    at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:52)
    at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:171)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:167)
    at com.mercury.topaz.webinfra.filters.UserStatsLogFilter.doFilter(UserStatsLogFilter.java:113)
    at sun.reflect.GeneratedMethodAccessor147.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:601)
    at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:244)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.Subject.doAsPrivileged(Subject.java:536)
    at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:276)
    at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:218)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:210)
    at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:52)
    at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:171)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:167)
    at com.mercury.sitescope.web.servlet.filter.MLUFilter.doFilter(MLUFilter.java:42)
    at sun.reflect.GeneratedMethodAccessor146.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:601)
    at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:244)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.Subject.doAsPrivileged(Subject.java:536)
    at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:276)
    at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:218)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:210)
    at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:52)
    at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:171)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:167)
    at com.mercury.sitescope.web.servlet.filter.SecurityContentFilter.doFilter(SecurityContentFilter.java:52)
    at sun.reflect.GeneratedMethodAccessor152.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:601)
    at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:244)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.Subject.doAsPrivileged(Subject.java:536)
    at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:276)
    at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:218)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:210)
    at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:52)
    at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:171)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:167)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172)
    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:563)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
    at com.mercury.sitescope.web.tomcat.valves.RequestParametersParserValve.invoke(RequestParametersParserValve.java:57)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:879)
    at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
    at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
    at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
    at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
    at java.lang.Thread.run(Thread.java:722)
    2014-05-06 07:32:28,828 [http-8443-Processor24] (SSHV2Connector.java:1152) DEBUG - start closing file for output
    2014-05-06 07:32:28,829 [http-8443-Processor24] (SSHV2Connector.java:1157) DEBUG - Finished closing file for output, Time elapsed: 0 ms.
    2014-05-06 07:32:28,830 [http-8443-Processor24] (SSHV2Connector.java:1158) DEBUG - Finished (finally) internalExecV2, Time elapsed: 3010 ms.
    2014-05-06 07:32:28,831 [http-8443-Processor24] (SSHRemote.java:338) DEBUG - finished executing command over an SSH Session, Time elapsed: 3024 ms.
    2014-05-06 07:32:28,832 [http-8443-Processor24] (SSHRemote.java:247) DEBUG - SSHManager Info: closing session for remote: testremoteserver, caching=false, forceClose=true, closing=false
    2014-05-06 07:32:28,833 [http-8443-Processor24] (SSHV2Connector.java:88) DEBUG - About to write shell command <<exit>> with encoding Cp1252
    2014-05-06 07:32:28,835 [http-8443-Processor24] (SSHV2Connector.java:932) DEBUG - Exception - failed to write exit to ssh terminal: java.io.IOException: Broken pipe
    java.io.IOException: Broken pipe
    at sun.nio.ch.FileDispatcherImpl.write0(Native Method)
    at sun.nio.ch.FileDispatcherImpl.write(FileDispatcherImpl.java:59)
    at sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:94)
    at sun.nio.ch.IOUtil.write(IOUtil.java:65)
    at sun.nio.ch.SinkChannelImpl.write(SinkChannelImpl.java:168)
    at com.mindbright.nio.NonBlockingOutputNIO.write(NonBlockingOutputNIO.java:72)
    at com.mindbright.nio.NonBlockingOutputNIO.write(NonBlockingOutputNIO.java:61)
    at com.mercury.sitescope.util.ssh.SSHV2Connector.writeLine(SSHV2Connector.java:90)
    at com.mercury.sitescope.util.ssh.SSHV2Connector.writeExitToTerminal(SSHV2Connector.java:909)
    at com.mercury.sitescope.util.ssh.SSHV2Connector.close(SSHV2Connector.java:945)
    at com.mercury.sitescope.util.ssh.SSHClientBase.close(SSHClientBase.java:254)
    at com.mercury.sitescope.util.ssh.SSHRemote.closeSession(SSHRemote.java:262)
    at com.mercury.sitescope.util.ssh.SSHRemote.release(SSHRemote.java:249)
    at com.mercury.sitescope.util.ssh.SSHRemote.execute(SSHRemote.java:353)
    at com.mercury.sitescope.util.ssh.SSHManager.execute(SSHManager.java:117)
    at com.mercury.sitescope.util.cmdline.SSHCommandLine.exec(SSHCommandLine.java:159)
    at com.mercury.sitescope.util.cmdline.SSHCommandLine.exec(SSHCommandLine.java:122)
    at com.mercury.sitescope.util.cmdline.SSHCommandLine.exec(SSHCommandLine.java:118)
    at com.mercury.sitescope.util.cmdline.RemoteCommandLine.exec(RemoteCommandLine.java:152)
    at com.mercury.sitescope.util.cmdline.RemoteCommandLine.test(RemoteCommandLine.java:148)
    at com.mercury.sitescope.entities.preferences.RemoteUnixInstancePreferences.test(RemoteUnixInstancePreferences.java:367)
    at com.mercury.sitescope.api.APIPreference.test(APIPreference.java:902)
    at com.mercury.sitescope.api.PreferenceProxy.test(PreferenceProxy.java:511)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:601)
    at com.mercury.util.proxy.servlet.RemoteProxyServlet.doPost(RemoteProxyServlet.java:60)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    at sun.reflect.GeneratedMethodAccessor145.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:601)
    at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:244)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.Subject.doAsPrivileged(Subject.java:536)
    at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:276)
    at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:162)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:262)
    at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:52)
    at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:171)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:167)
    at com.mercury.sitescope.web.servlet.filter.AuthenticationFilterBase.doFilter(AuthenticationFilterBase.java:86)
    at sun.reflect.GeneratedMethodAccessor156.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:601)
    at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:244)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.Subject.doAsPrivileged(Subject.java:536)
    at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:276)
    at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:218)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:210)
    at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:52)
    at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:171)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:167)
    at com.hp.sw.bto.security.bsf.csrf.CsrfGuardFilter.doFilter(CsrfGuardFilter.java:67)
    at com.mercury.sitescope.web.servlet.filter.CSRFGuardFilterWrapper.doFilter(CSRFGuardFilterWrapper.java:44)
    at sun.reflect.GeneratedMethodAccessor157.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:601)
    at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:244)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.Subject.doAsPrivileged(Subject.java:536)
    at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:276)
    at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:218)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:210)
    at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:52)
    at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:171)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:167)
    at com.mercury.topaz.webinfra.filters.UserStatsLogFilter.doFilter(UserStatsLogFilter.java:113)
    at sun.reflect.GeneratedMethodAccessor147.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:601)
    at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:244)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.Subject.doAsPrivileged(Subject.java:536)
    at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:276)
    at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:218)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:210)
    at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:52)
    at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:171)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:167)
    at com.mercury.sitescope.web.servlet.filter.MLUFilter.doFilter(MLUFilter.java:42)
    at sun.reflect.GeneratedMethodAccessor146.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:601)
    at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:244)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.Subject.doAsPrivileged(Subject.java:536)
    at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:276)
    at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:218)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:210)
    at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:52)
    at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:171)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:167)
    at com.mercury.sitescope.web.servlet.filter.SecurityContentFilter.doFilter(SecurityContentFilter.java:52)
    at sun.reflect.GeneratedMethodAccessor152.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:601)
    at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:244)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.Subject.doAsPrivileged(Subject.java:536)
    at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:276)
    at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:218)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:210)
    at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:52)
    at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:171)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:167)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172)
    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:563)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
    at com.mercury.sitescope.web.tomcat.valves.RequestParametersParserValve.invoke(RequestParametersParserValve.java:57)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:879)
    at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
    at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
    at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
    at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
    at java.lang.Thread.run(Thread.java:722)
    2014-05-06 07:32:28,844 [http-8443-Processor24] (SSHRemote.java:367) ERROR - SSHRemote Error: failed to execute the command: echo testing connection on remote: testremoteserver, status code: -998

     

     

     

     

     

     

  • I saw the troubleshooting link this morning. enabled debugging and also did the minterm which kicks me out :(.

     

    I can execute a script from ssh using the same keys - just cannot login interactively.

    log.zip
  • By the logs I can see there is no issue with authentication nor sending commands. Issue happens with reading command output because shell is non-interactive and there is no access to its tty. So, this may not work with SiS. I'd try to emulate interactive shell via a script that runs as part of shell initialization for default user, like example described here: http://www.tldp.org/LDP/abs/html/intandnonint.html

    Yet I'm not sure if this will work.
  • is there a way to by pass interactive mode? I am simply looking to exeute a script and grab the output. It does work with the old version of sitescope.

  • is there a way to by pass interactive mode? I am simply looking to exeute a script and grab the output. It does work with the old version of sitescope.

  • is there a way to by pass interactive mode? I am simply looking to exeute a script and grab the output. It does work with the old version of sitescope.

  • What's that version? Check if you are using plink provider in that version, that would explain it. Plink support was removed in SiS 11.00
  • It is version 8.8.

     

    Is there any way to bypass this or add this as part of a feature request? This is kind of show stopper for us and we will not be able to get interactive access approval from our security team.

  • Thank you! Anything you could share in terms of an ETA ?

Reply Children