I would like to have a script rename a remote file (with ssh?). I'm not sure how to do it.
Asked
Active
Viewed 6,047 times
1 Answers
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
-
it's not working – edotan Apr 20 '11 at 14:05
-
4@elad try harder – MDMarra Apr 20 '11 at 14:45
-
1@elad It is working. (perhaps if you tell us *why* it's not working - error messages and the like - you'll get better guidance...) – voretaq7 Apr 20 '11 at 14:47
-
1@elad: It does work, clearly your configuration is broken. If you tell us what thr error message is that you're getting then there is a chance we can help otherwise your on your own. – user9517 Apr 20 '11 at 14:53