View previous topic :: View next topic |
Author |
Message |
chi86 Apprentice
Joined: 30 Jul 2013 Posts: 184 Location: Austria
|
Posted: Mon Oct 12, 2015 6:10 am Post subject: [SOLVED] sftp autocompletion |
|
|
Hi,
is there a reason why with gentoo (not sure if that is just a problem of my setup?) the sftp autocompletion won't work? Is there a fix?
Thx!
Last edited by chi86 on Thu Oct 15, 2015 7:10 am; edited 1 time in total |
|
Back to top |
|
|
charles17 Advocate
Joined: 02 Mar 2008 Posts: 3664
|
Posted: Mon Oct 12, 2015 8:01 am Post subject: |
|
|
In case you don't find an answer you could use lftp as a sftp client. |
|
Back to top |
|
|
chi86 Apprentice
Joined: 30 Jul 2013 Posts: 184 Location: Austria
|
Posted: Tue Oct 13, 2015 5:09 am Post subject: |
|
|
Thanks for the workaround but with all the other linux distributions I tried so far it worked without any additional effort.... why not here? |
|
Back to top |
|
|
chi86 Apprentice
Joined: 30 Jul 2013 Posts: 184 Location: Austria
|
Posted: Tue Oct 13, 2015 5:09 am Post subject: |
|
|
Thanks for the workaround but with all the other linux distributions I tried so far it worked without any additional effort.... why not here? |
|
Back to top |
|
|
charles17 Advocate
Joined: 02 Mar 2008 Posts: 3664
|
Posted: Tue Oct 13, 2015 5:47 am Post subject: |
|
|
chi86 wrote: | Thanks for the workaround but with all the other linux distributions I tried so far it worked without any additional effort. |
If so, you could open a new bug for that missing feature. |
|
Back to top |
|
|
chi86 Apprentice
Joined: 30 Jul 2013 Posts: 184 Location: Austria
|
Posted: Tue Oct 13, 2015 5:49 am Post subject: |
|
|
charles17 wrote: | If so, you could open a new bug for that missing feature. |
Ok I will but I try a bit more befor I open a bug report!
Last edited by chi86 on Tue Oct 13, 2015 11:31 am; edited 1 time in total |
|
Back to top |
|
|
charles17 Advocate
Joined: 02 Mar 2008 Posts: 3664
|
Posted: Tue Oct 13, 2015 6:08 am Post subject: |
|
|
chi86 wrote: | Ok I will but I try a bit more befor I open a bug report! |
Once you have the solution it would be nice to have it in the wiki article. |
|
Back to top |
|
|
khayyam Watchman
Joined: 07 Jun 2012 Posts: 6227 Location: Room 101
|
Posted: Tue Oct 13, 2015 1:09 pm Post subject: |
|
|
chi86 wrote: | Thanks for the workaround but with all the other linux distributions I tried so far it worked without any additional effort.... why not here? |
chi86 ... not being a bash user I can only guess ... does 'eselect bashcomp list' show an s{sh,ftp} completion, and is it enabled?
See this discussion on the subject.
HTH & best ... khay |
|
Back to top |
|
|
chi86 Apprentice
Joined: 30 Jul 2013 Posts: 184 Location: Austria
|
Posted: Tue Oct 13, 2015 1:25 pm Post subject: |
|
|
khayyam wrote: | does 'eselect bashcomp list' show an s{sh,ftp} completion, and is it enabled? |
I had to install bash-completion first and than by executing:
Code: | select bashcomp list | grep ftp |
I get:
Code: | [354] lftp *
[355] lftpget *
[462] ncftp *
[637] sftp *
|
So thats not it! |
|
Back to top |
|
|
khayyam Watchman
Joined: 07 Jun 2012 Posts: 6227 Location: Room 101
|
Posted: Wed Oct 14, 2015 10:52 am Post subject: |
|
|
chi86 wrote: | khayyam wrote: | does 'eselect bashcomp list' show an s{sh,ftp} completion, and is it enabled? |
I had to install bash-completion first [...] So thats not it! |
chi86 ... just to be sure, you did restart the shell after installing bash-completion?
best ... khay |
|
Back to top |
|
|
chi86 Apprentice
Joined: 30 Jul 2013 Posts: 184 Location: Austria
|
Posted: Wed Oct 14, 2015 11:30 am Post subject: |
|
|
I did now but it still won't work! |
|
Back to top |
|
|
khayyam Watchman
Joined: 07 Jun 2012 Posts: 6227 Location: Room 101
|
Posted: Wed Oct 14, 2015 11:59 am Post subject: |
|
|
chi86 wrote: | I did now but it still won't work! |
chi86 ... you mean completion in general, or sftp only? Is the system wide bashrc being sourced?
Code: | $ env -i bash -l --norc |
best ... khay |
|
Back to top |
|
|
chi86 Apprentice
Joined: 30 Jul 2013 Posts: 184 Location: Austria
|
Posted: Wed Oct 14, 2015 1:01 pm Post subject: |
|
|
It works everywhere perfectly fine but with sftp.
khayyam wrote: | Code: | $ env -i bash -l --norc |
|
This won't work but I rebooted the pc in the meantime! |
|
Back to top |
|
|
khayyam Watchman
Joined: 07 Jun 2012 Posts: 6227 Location: Room 101
|
Posted: Wed Oct 14, 2015 4:58 pm Post subject: |
|
|
Code: | $ env -i bash --login --norc |
... as I said, I'm not a bash user ... zsh has the short -l, obviously bash doesn't. The above is to test if the issue is a result of something in ~/.bashrc or ~/.bash_profile.
best ... khay |
|
Back to top |
|
|
chi86 Apprentice
Joined: 30 Jul 2013 Posts: 184 Location: Austria
|
Posted: Thu Oct 15, 2015 5:12 am Post subject: |
|
|
khayyam wrote: | The above is to test if the issue is a result of something in ~/.bashrc or ~/.bash_profile. |
I tried that and it can log in without any problems (as normal and super user)!
BTW thanks for your help. It is greatly appreciated! |
|
Back to top |
|
|
chi86 Apprentice
Joined: 30 Jul 2013 Posts: 184 Location: Austria
|
Posted: Thu Oct 15, 2015 7:09 am Post subject: |
|
|
I solved the issue!
The libedit flag had to be added to net-misc/openssh:
/etc/portage/package.use:
Code: | # required for auto completion (tab) sftp
>=net-misc/openssh-6.9_p1-r2 libedit
|
and after re-emerging openssh the tab completion worked for sftp!!! |
|
Back to top |
|
|
|