0

I would like to have a script rename a remote file (with ssh?). I'm not sure how to do it.

Caleb
  • 11,813
  • 4
  • 36
  • 49
edotan
  • 1,876
  • 13
  • 39
  • 57

1 Answers1

6

You can use ssh to execute the mv command directly

ssh user@remotehost.tld mv file filenew
Giacomo1968
  • 3,542
  • 27
  • 38
user9517
  • 115,471
  • 20
  • 215
  • 297