Good Afternoon All,
I recently became aware of my ability to send commands back to my local workstation from a remote SSH connection by using the <enter>~C
escape sequence, like:
[root@host ~]#
[root@host ~]#
ssh> !ip ad
Now, I would love to be able to do this using a bash script to automatically run commands on my local workstation or do other things, but I've been unable to find any way of sending commands back to this shell programmatically, nor found anyone else who's asked/tried. To be clear, I'm not trying to send commands TO a remote server via SSH - I'm trying to send commands BACK to my workstation FROM an SSH connection through the client (as pictured above).
If anyone has any suggestions or knows how to do this, I would be greatly appreciative of your help. Thanks!