LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 02-23-2009, 01:42 PM   #1
PlatinumX
Member
 
Registered: May 2008
Location: France
Distribution: Debian / Fedora / Gentoo
Posts: 178

Rep: Reputation: 15
SCP and Autocompletion


Hey all,

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

Thanks
 
Old 02-23-2009, 02:49 PM   #2
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
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.
 
Old 02-23-2009, 04:28 PM   #3
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 76
You probably mean sftp, not scp, and the answer is no.
 
Old 02-24-2009, 01:10 PM   #4
PlatinumX
Member
 
Registered: May 2008
Location: France
Distribution: Debian / Fedora / Gentoo
Posts: 178

Original Poster
Rep: Reputation: 15
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
 
Old 03-12-2009, 02:48 AM   #5
dreamnid
LQ Newbie
 
Registered: Mar 2009
Posts: 1

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

Works in Ubuntu.
 
Old 07-23-2010, 08:25 PM   #6
donnied
Member
 
Registered: Oct 2006
Distribution: Debian x64
Posts: 198

Rep: Reputation: 30
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.)
 
Old 09-25-2010, 03:25 PM   #7
magickangaroo
LQ Newbie
 
Registered: Jul 2004
Posts: 2

Rep: Reputation: 0
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
scp does not work and gives the following error message: scp: FATAL: Executing ssh1 i akay Linux - Networking 16 09-28-2008 11:41 PM
commandline autocompletion for my shell script mmn357157 Linux - General 5 09-11-2008 11:29 AM
scp help akhil.mud Programming 6 04-14-2008 08:47 PM
suse 9.2 + bash autocompletion alaios SUSE / openSUSE 9 05-13-2005 12:34 PM
Help with SCP lfindle Linux - Newbie 14 07-09-2002 02:08 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:20 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration