这个 SSH 语法是什么?

这个 SSH 语法是什么?

客户有一种用于保护访问的代理系统。其访问方式如下,来自 powershell (OpenSSH_for_Windows_8.1p1, LibreSSL 3.0.2):

ssh myAllowedUser[[email protected]]@xx.xxx.xx.198

这个语法出自哪里?我尝试复制这个,想着是不是 ProxyJump,但没有成功

-J [user@]host[:port]
             Connect to the target host by first making a ssh connection to the jump host and then establishing a
             TCP forwarding to the ultimate destination from there.  Multiple jump hops may be specified separated
             by comma characters.  This is a shortcut to specify a ProxyJump configuration directive.

PS C:\Users\xxxx> ssh -J [email protected] [email protected]
[email protected]'s password:
channel 0: open failed: administratively prohibited: open failed
stdio forwarding failed
kex_exchange_identification: Connection closed by remote host

我希望,当我理解正在做什么时,创建我的 ssh 配置文件如下

Host SERVER_EXAMPLE
    HostName xx.xxx.xx.199
    User myAllowedUser
    ProxyJump xx.xxx.xx.198 #Just for example here
    ServerAliveInterval 10

然后稍后就:

ssh SERVER_EXAMPLE

我很感激任何帮助。谢谢

答案1

所以,最终只是密码库使用登录字符串的一种特定方式。这样,下面的方法就可以按预期工作。

Host SERVER_EXAMPLE
    HostName xx.xxx.xxx.198
    User myAllowedUser[[email protected]]
    ServerAliveInterval 10

答案2

您可以在 CLI 中使用它:

myAllowedUser%userTarget%[email protected]

相关内容