Need to remote control client's ssh session

Is there a way that I can remotely control a user's ssh session so I can see what they are doing and walk them through the problem they are having on my AIX based application?

The following is far from being a fullblown solution and you can't control another session (that is: enter commands on the users behalf), but it is built-in and readily available: the wall command. You can use it (as root) to make a message appear in very users session.

The format is:

root@lpar # wall '...message of your choice...'

Whatever is enclosed in the single quotes goes to every terminal.

You can also explore the talk command, which you can use to have double-sided conversations with one user at a time.

I hope this helps.

bakunin

You are looking for the portmir command. This is one of the gems of AIX. It will let you attach your session to someone elses session and you can both type and see output. Be careful though that you don't accidentally give someone else your privileges.

2 Likes