fix: Use correct path for ssh configuration file
This commit is contained in:
parent
bda4fdaf21
commit
ac4639be61
1 changed files with 1 additions and 1 deletions
|
@ -30,7 +30,7 @@ get_ssh_user() {
|
||||||
$1 = "";
|
$1 = "";
|
||||||
sub( /^[[:space:]]*/, "" );
|
sub( /^[[:space:]]*/, "" );
|
||||||
printf "%s|%s\n", host, $0;
|
printf "%s|%s\n", host, $0;
|
||||||
}' .ssh/config`; do
|
}' /etc/ssh/ssh_config`; do
|
||||||
local host_regex=${ssh_config%|*}
|
local host_regex=${ssh_config%|*}
|
||||||
local host_user=${ssh_config#*|}
|
local host_user=${ssh_config#*|}
|
||||||
if [[ "$1" =~ $host_regex ]]; then
|
if [[ "$1" =~ $host_regex ]]; then
|
||||||
|
|
Loading…
Reference in a new issue