Skip to main content
2 of 3
added 2 characters in body
ssh -n user@hostname 'find /root/git/ -mtime 10 | while read -r LINE ; do echo $LINE; done'

-n option from man ssh:

-n Redirects stdin from /dev/null (actually, prevents reading from stdin). This must be used when ssh is run in the background. # ... # The ssh program will be put in the background. (This does not work if ssh needs to ask for a password or passphrase; see also the -f option.)