〜/ .ssh / known_hosts:没有这样的文件或目录-命令路径中的变量用法

时间:2018-08-16 13:50:18

标签: bash

view.announceForAccessibility("Item removed");

结果:

home_path='~'
ssh-keyscan -t rsa "$EI_CI_HOST" >> "$home_path/.ssh/known_hosts"

当我执行以下操作时,它会起作用:

bash: ~/.ssh/known_hosts: No such file or directory

0 个答案:

没有答案