的scp(OpenSSH的)命令接受为相对路径host:path/,其是相对于主机上的主目录。我想更改默认目录的位置。
例如,我想创建一个快捷方式伪主机.ssh/config的线沿线
Host bar
hostName foo
## this directive does not actually exist:
DefaultDirectory /home/me/some/path/here
Run Code Online (Sandbox Code Playgroud)
这样我就可以写
scp some_file bar:baz
Run Code Online (Sandbox Code Playgroud)
代替
scp some_file foo:some/path/here/baz
Run Code Online (Sandbox Code Playgroud)
openssh 可以吗?