这个ssh命令有什么作用?特别是我对4 v&#39>感到困惑
ssh -L 65432:db-001-management.qa001:6432user.guy@bastion.some-company.net -N -vvvv
4 v
是什么?什么是N
?什么是user.guy
部分以及存储在哪里?
答案 0 :(得分:1)
{{1}}
答案 1 :(得分:0)
我假设-L
标志和主机规范之间缺少空格,从而进行命令调用:
ssh -L 65432:db-001-management.qa001:6432 user.guy@bastion.some-company.net -N -vvvv
摘自ssh man page:
...destination, which may be specified as either [user@]hostname...
因此,user.guy
不会存储在内存中以用于身份验证。
-L local_socket:host:hostport
Specifies that connections to the given TCP port or Unix socket on the
local (client) host are to be forwarded to the given host and port, or
Unix socket, on the remote side.
这将设置一个端口转发,以便与运行客户端的系统上的端口65432的连接转发到db-001-management.qa001端口6432,该服务器可能与该服务器具有IP连接。
-N
Do not execute a remote command. This is useful for just forwarding ports.
默认情况下,shell会启动,此标志会阻止它。
-v
Verbose mode. Causes ssh to print debugging messages about its progress.
This is helpful in debugging connection, authentication, and
configuration problems. Multiple -v options increase the verbosity. The
maximum is 3.