Use the sftp command "rename". It works like CUT and PASTE in normal shell. sftp> rename <old-path> <new-path>