java 通过vnc访问_通过VNC的笔记本电脑从防火墙后面隧道到远程服务器? [关闭]...

如果我理解你是正确的,你可以从你到达笔记本电脑的地方打电话给ssh . 然后你应该能够做这样的事情:

ssh -f -N -L ::

这将创建在主机上启动tcp侦听端口,其中ssh始发,通过您运行的计算机转发到远程主机和端口 .

-L [bind_address:]port:host:hostport

-L [bind_address:]port:remote_socket

-L local_socket:host:hostport

-L local_socket:remote_socket

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. This works by allocating a socket to listen to

either a TCP port on the local side, optionally bound to the specified

bind_address, or to a Unix socket. Whenever a connection is made to the

local port or socket, the connection is forwarded over the secure channel,

and a connection is made to either host port hostport, or the Unix socket

remote_socket, from the remote machine.

Port forwardings can also be specified in the configuration file. Only the

superuser can forward privileged ports. IPv6 addresses can be specified by

enclosing the address in square brackets.

By default, the local port is bound in accordance with the GatewayPorts

setting. However, an explicit bind_address may be used to bind the

connection to a specific address. The bind_address of “localhost” indicates

that the listening port be bound for local use only, while an empty address

or ‘*’ indicates that the port should be available from all interfaces.

-f

Requests ssh to go to background just before command execution. This is

useful if ssh is going to ask for passwords or passphrases, but the user

wants it in the background. This implies -n. The recommended way to start

X11 programs at a remote site is with something like ssh -f host xterm.

If the ExitOnForwardFailure configuration option is set to “yes”, then a

client started with -f will wait for all remote port forwards to be

successfully established before placing itself in the background.

-N

Do not execute a remote command. This is useful for just forwarding ports.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值