I would like to be able to print to the terminal of a computer on a different network (this should work bilaterally). I understand that this should be possible by using the command ntalk
, but I have not been able to figure out how.
As I understand it, a way to do that would be to set up a restricted shell for a ssh user which would allow that user to print in the terminal, while not being able execute any other commands, so solutions for that would also be appreciated (as well as any other for that matter).
I'm just looking for a low security risk way to establish a point to point chat similar to IRC and with a minimal requirement to instal or configure additional software if OS X ships with something that can work.
Can ntalk
work between another computer and Mac OS X?
Best Answer
It's unclear what you really mean with communicate!
If you want to have a chat-like communication enable ntalk on both hosts:
Then enter
to open a chat session.
To enable the chat session on the other side just enter the displayed command e.g.
This might fail if the system versions of the two hosts are different.
To "mirror" a session/attach your Terminal window to another one on a different host use
screen
:On host1/user1 enter
On host2/user2 enter:
User1's input will be visible in user2's shell but is unable to execute anything on host2. User2 can execute commands on host1. Both users see all commands entered in both "shells".
Screen is a really mighty tool. Please consult
man screen
for further informations.