Re: Remote delete files?



howa wrote:


sunebeck@xxxxxxxxx wrote:
howa wrote:
Hi,

How to delete files that exist on remote servers, given that only
secure method is allowed?

If you have ssh access you can write the command in one line like this:

ssh remote-host rm /path/to/file/that/should/be/deleted

happy too earlier...one more problem...

the file is owned by the root, but my ssh can't allow root login, is it
possible to do using this approach?
Open a ssh shell as normal user on the remote machine and and then get root
rights with su ( or sudo) in that ssh shell.

.