0

Is there any way to get tab completion to work in an SCP command if the target machine is behind a password? I'm working in Terminal on OSX.

TTM
  • 239
Evan
  • 191

1 Answers1

4

Yes, you have to work with ssh-keys instead of a password-login.

See "How do I set up SSH so I don't have to type my password?" to learn about how to do this.

Then, for example my zsh is able to complete the filenames on the remote host. Otherwise I would have to enter my password each time I press Tab.

For bash I assume you can install 'bash-completion' somehow, maybe "Terminal tab completion" will help.

akira
  • 63,447