SCP and Autocompletion
Hey all,
The question may sound stupid... But in case: is there a way to have autocompletion with SCP ? Thanks |
Probably not, since you don't have access to the remote filesystem until you actually hit enter and authenticate.
If autocompletion is important, you might look into sshfs. I haven't used it, but it sounds like it allows one to mount a remote filesystem over ssh. I would think that your shell could then autocomplete files and directories for the mounted filesystem. |
You probably mean sftp, not scp, and the answer is no.
|
Thanks for info.
I also thought the same stuff: you need to be connected to be ableto brows the remote filesystem... In case there is a feature I don't know. @chort I meant scp, not sftp |
Actually, it does auto-complete if you have a cert for that server.
Works in Ubuntu. |
I used to be able to autocomplete directory names and what not with scp... No longer. How do I reenable the autocompletion with scp? (Yes, it's still using the same with keys ssh.)
|
sudo apt-get install bash-completion
Logs you into the remote server if your keyed to it, and key is unlocked in memory. also lots of other stuff also. not sure if this was around at time at original post so hope this helps. |
All times are GMT -5. The time now is 04:18 AM. |