LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   SCP and Autocompletion (https://www.linuxquestions.org/questions/linux-networking-3/scp-and-autocompletion-706913/)

PlatinumX 02-23-2009 01:42 PM

SCP and Autocompletion
 
Hey all,

The question may sound stupid...
But in case: is there a way to have autocompletion with SCP ?

Thanks

anomie 02-23-2009 02:49 PM

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.

chort 02-23-2009 04:28 PM

You probably mean sftp, not scp, and the answer is no.

PlatinumX 02-24-2009 01:10 PM

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

dreamnid 03-12-2009 02:48 AM

Actually, it does auto-complete if you have a cert for that server.

Works in Ubuntu.

donnied 07-23-2010 08:25 PM

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.)

magickangaroo 09-25-2010 03:25 PM

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.