Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Is it possible to use the bash features such as word completion, reverse search, scrolling, etc. in SFTP?

When I try the scroll feature with the up-arrow, it always writes the symbol ^^^.

share|improve this question

migrated from stackoverflow.com Oct 20 '11 at 17:38

This question came from our site for professional and enthusiast programmers.

3  
No. sftp is not a bash command prompt, so until someone modifies the sftp client to be more bash-like, it's not possible. It's like saying "I want cmd.exe prompt to be more like word so I can bold/italic" - they're two completely different environments. –  Marc B Oct 20 '11 at 17:25
    
SFTP is a file transfer protocol. It's not clear how you are going to use it as shell. If you are talking about Shell access, then if the remote side has name completion, then I don't see why it can't work. –  Eugene Mayevski 'EldoS Corp Oct 20 '11 at 17:39
    
I can get completion using scp provided I have bash-completion/zsh-completion and have configured my SSH client and ssh-add'ed my RSA keys and password to the SSH keychain. –  birryree Oct 20 '11 at 17:54

1 Answer 1

Tab completion seems to be possible in yafc.

Though I didn't try it myself. I can't imagine another way to get bash like behaviour working other than if it is implemented in the client you use. The client has to buffer the information on the other computer, or keep a connection open to access the data there on searches and everything, so I think searching for a good commandline client is your way to go.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.