这个有效:
ssh root@host -p port
但是这个没有,返回Name or service not known
:
ssh root@host:port
帮助打印
usage: ssh
...
[-i identity_file] [-J [user@]host[:port]] [-L address]
...
为什么第二种语法对我不起作用?
这个有效:
ssh root@host -p port
但是这个没有,返回Name or service not known
:
ssh root@host:port
帮助打印
usage: ssh
...
[-i identity_file] [-J [user@]host[:port]] [-L address]
...
为什么第二种语法对我不起作用?
您想要的格式仅适用于
-J
选项,而不适用于目标选项。从手册页: