-
-
Notifications
You must be signed in to change notification settings - Fork 104
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UserKnownHostsFile配置不支持%k #158
Comments
%k The host key alias if specified, otherwise the original remote hostname given on the command line. 要抽空实现一下才行,https://github.com/trzsz/trzsz-ssh/blob/main/tssh/tokens.go |
|
%n可以用,当没有设置HostKeyAlias时效果时一样的 问了一下gpt: 在
举例假设有如下 Host example
HostName realhost.example.com
HostKeyAlias alias.example.com
User user
ProxyCommand ssh -W %h:%p gateway.example.com
LogFile /var/log/ssh/%n.log
当运行以下命令时: ssh example
总结
|
已支持。 在 |
ssh要连很多服务器,用统一的UserKnownHostFile,里面会又几百行,用ssh时,可以用%k每个服务器写一个文件,用tssh不支持
expand UserKnownHostsFile [
/.ssh/known_hosts.d/%k] failed: token [%k] in [/.ssh/known_hosts.d/%k] is not supported yetThe text was updated successfully, but these errors were encountered: