3
I am trying to create a remote shell on OS X with NC.
I tried nc -l 1337 -e /bin/bash
but it seems that the Mac version of NC does not support the -e
option.
Does anyone know how I can achieve a remote shell on OS X preferably only using the built in tools?
Unfortunately SSH isn't an option. What I am doing has to be done solely from the command line (so GUI option alterations are out of the question). Also I am trying to avoid password's because it will cause problems for my client program.
EDIT: Apologies for lack of information. I thought I had added enough.
Basically, I have several VM's running OS X and need them to have able to use each others command line. My plan was to have NC running on each and the the main VM could send commands to them through a PHP script.
Also, the reason for wanting to use the build in commands/tools is because I this will eventually be run on physical hardware and Mac's will be added and removed regularly and I do not want to install new software on client machines.
The reason for avoiding GUI actions is that this will be run without supervision of myself and am trying to make this as seamless as possible. When a machine is connected, I am able to launch one command, and I need to do many commands and file transfers which is why a remote shell is what I am after.
I just looked at rsh and it doesn't seem to do what I am trying to do, which is create a listening server which I can connected to and receive full command line access. – Jamescun – 2010-04-28T20:44:36.320
7Is there anything particularly wrong with using the built-in SSH server? – Ignacio Vazquez-Abrams – 2010-04-28T20:53:44.167
@arjan: i expect he means netcat
– quack quixote – 2010-04-28T21:10:12.447Still wondering about "one command". So, one line with multiple commands (separated with
;
, or chained using||
or&&
) is not possible either? – Arjan – 2010-04-28T22:17:21.297(@Jamza, did you see my comment about chaining commands?) – Arjan – 2010-04-30T05:24:49.410