Score:1

SSH PermitLocalCommand - ! command produces no output

in flag

I've enabled PermitLocalCommand in my ssh .config file and I can run a command locally but the command I run appears to produce no output.

[[email protected]]$ ssh [email protected]
[[email protected] ~]$ echo "I'm on remote machine"
I'm on remote machine
~C
ssh> ! echo hello world

[[email protected] ~]$

I've no idea where the output goes... I've tried doing ! echo hello world > /tmp/file and I can see that the file does contain "hello world" so the actual command is being executed.

Does anyone know how I can get the output from the command to appear?

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.