Saturday, 15 August 2015

Specify different options for scp and ssh in .ssh_config file -


I use the ~ / .ssh / config file to set my ssh options I am here.

I want to specify different settings for SCP and SSH for the same host. Is it possible to do this?

I left them, but there was no way to do this.

I will create a second config file, ~ / .ssh / scp_config And then specify the -f option config file for a shell nickname for scp :

  surname scp = "scp -F ~ / .ssh / scp_config`   

(This is an untested zsh alias; I do not know how different alias are, but This idea should be the same. Note also that you may need to use scp -F & lt; File & gt; In the script).

No comments:

Post a Comment