Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Virgo » Remote command execution to the SSH shell?
Remote command execution to the SSH shell? [message #1004117] Tue, 22 January 2013 16:00 Go to next message
James Gartner is currently offline James GartnerFriend
Messages: 30
Registered: March 2012
Member
Folks,
I'd like to do a remote ssh command INTO the Virgo shell itself, something like:

ssh -p2502 user@machineWithVirgoRunning 'ss'

When I try this, I get the password request, and then I get"
"exec request failed on channel 0"


If I do THIS, it works (I see the shell command prompt):
ssh -p2502 user@machineWithVirgoRunning

Any ideas how to get the remote command to work from inside the virgo command shell?
Re: Remote command execution to the SSH shell? [message #1005824 is a reply to message #1004117] Mon, 28 January 2013 20:52 Go to previous messageGo to next message
James Gartner is currently offline James GartnerFriend
Messages: 30
Registered: March 2012
Member
Does anyone know where/if I can look at the sshd apache mina configuration stuff for Virgo to see if I can update anything there to all remote command execution? I haven't found anything obvious yet....
IN the virgo log file, all I see is this:
"Received SSH_MSG_USERAUTH_REQUEST
[2013-01-28 11:32:34.434] INFO NioProcessor-5 org.apache.sshd.server.session.ServerSession Authenticating user 'admin' with method 'password'
[2013-01-28 11:32:34.434] INFO NioProcessor-5 org.apache.sshd.server.session.ServerSession Authentication succeeded
[2013-01-28 11:32:34.481] INFO NioProcessor-5 org.apache.sshd.server.session.ServerSession Received SSH_MSG_CHANNEL_OPEN session
[2013-01-28 11:32:34.528] INFO NioProcessor-5 org.apache.sshd.server.channel.ChannelSession Received SSH_MSG_CHANNEL_REQUEST on channel 0
[2013-01-28 11:32:34.528] INFO NioProcessor-5 org.apache.sshd.server.channel.ChannelSession Received channel request: exec
[2013-01-28 11:32:34.559] INFO NioProcessor-5 org.apache.sshd.server.session.ServerSession Closing session
[2013-01-28 11:32:34.559] INFO NioProcessor-5 org.apache.sshd.server.channel.ChannelSession Closing channel 0 immediately
"
Re: Remote command execution to the SSH shell? [message #1006974 is a reply to message #1005824] Sun, 03 February 2013 13:20 Go to previous messageGo to next message
Lazar Kirchev is currently offline Lazar KirchevFriend
Messages: 30
Registered: July 2009
Location: Sofia, Bulgaria
Member
Hello James,

Mina sshd-core does not support direct execution of commands on the server. At least the default configuration does not support it (http://mina.apache.org/sshd-project/tips.html). It is possible to be done, but we have not considered implementing it yet. Since it turns out that there is a use case for it - your case, you could open an enhancement bug against Equinox console (because Virgo uses the Equinox console as it is) and we could add this feature. The console is in the components subproject of Equinox. Unfortunately, you could not turn this feature on only with configurations.

Regards
Lazar
Re: Remote command execution to the SSH shell? [message #1007572 is a reply to message #1006974] Wed, 06 February 2013 14:51 Go to previous messageGo to next message
James Gartner is currently offline James GartnerFriend
Messages: 30
Registered: March 2012
Member
Thanks Lazar for that definitive answer. I've just added this as an enhancement bug request.
Re: Remote command execution to the SSH shell? [message #1035900 is a reply to message #1007572] Sun, 07 April 2013 16:35 Go to previous message
Lazar Kirchev is currently offline Lazar KirchevFriend
Messages: 30
Registered: July 2009
Location: Sofia, Bulgaria
Member
Hello James,

Are you sure you opened the bug in the correct component? I cannot find it there.

Regards,
Lazar

Previous Topic:NoClassDefFoundError on SpringBlueprintContainer when installing cxf-api
Next Topic:Virgo + RAP + OSGi: Extension Points and Fancy Theme
Goto Forum:
  


Current Time: Fri Apr 26 23:31:31 GMT 2024

Powered by FUDForum. Page generated in 0.03473 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top