0

Running ssh u@h command arguments works as expected:

$ ssh verence@dock df /run
Filesystem     1K-blocks  Used Available Use% Mounted on
tmpfs            6551280  1888   6549392   1% /run

If I add a shell on the remote host, the argument seems to be lost:

$ ssh verence@dock sh -c 'df /run'
Filesystem      1K-blocks     Used  Available Use% Mounted on
udev             32730924        0   32730924   0% /dev
tmpfs             6551280     1888    6549392   1% /run
/dev/nvme0n1p2 1920224544 17109596 1805499128   1% /
...

I'm probably missing something obvious here, but didn't find any clues. What is happening here?

nohillside
  • 3,251

0 Answers0