Closed GoogleCodeExporter closed 8 years ago
By the way, I forgot to describe the outcome of the following command in CLI:
***
shellinaboxd -p 4201 -c /var/lib/shellinabox --debug
--service=/s:shellinabox:shellinabox:HOME:'ssh root@216.xxx.xxx.xx -p 19777'
***
It gives "File Not Found" in browser window.
Original comment by foranyc...@gmail.com
on 2 Oct 2014 at 1:45
Yes, I don't see how the command lines that you use for SSH are going to work.
They don't really follow any of the syntax listed in the manual page. Things
could certainly be changed in the code, but I am not sure that's a good
approach. There are just too many different SSH options that could legitimately
be passed -- and we don't want a special syntax for each one of them.
On the other hand, the command line that uses the SHELL syntax should work. I
just tried it, and it works fine for me. Maybe, you don't have "ssh" in your
$PATH and that's why it is failing. Try giving an absolute path (e.g.
"/usr/bin/ssh") and see if that works any better.
Having said all of the above, it might make more sense to create a suitable
ssh_config file. Depending on how you start shellinaboxd, you might have to
edit /etc/ssh/ssh_config or ~/.ssh/config.
You could add something like this:
Host shellinabox
HostName xxx
Port xxx
Then define the service as:
shellinaboxd -p 4201 --service=/:SSH:shellinabox
Original comment by zod...@gmail.com
on 2 Oct 2014 at 6:10
Original comment by zod...@gmail.com
on 2 Oct 2014 at 6:10
Original issue reported on code.google.com by
foranyc...@gmail.com
on 2 Oct 2014 at 1:40