I use SCP regularly to move files between servers and I've heard rumoured that you can use tab-completion on the remote server if you're using public keys, but so far I have had no luck.
What I'm trying to accomplish is the following:
scp -r remote.ip.address:/remote/dir/folder<TAB> /local/destiation/
ls on the remote server of
/dir/ would reveal 3 folders:
I'd like for SCP to reveal which folders match (if any), just like normal path completion when navigating the local filesystem. Tab completion does work on the local paths in the
scp command line, but I've noticed that when the path for the remote machine matches the local (ie: "~/"), it completes/suggests files/folders from the local filesystem rather than the remote.
Running the following works for password-less login:
...so I know the keys are setup correctly. Any ideas on how to get this working?