博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
ssh -qTfnN -D 7070 x.x.x.x
阅读量:6855 次
发布时间:2019-06-26

本文共 2402 字,大约阅读时间需要 8 分钟。

  hot3.png

ssh -qTfnN -D 7070 x.x.x.x

     -q      Quiet mode.  Causes most warning and diagnostic messages to be

             suppressed.

     -T      Disable pseudo-tty allocation.

     -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 for‐

             wards to be successfully established before placing itself in the

             background.

     -n      Redirects stdin from /dev/null (actually, prevents reading from

             stdin).  This must be used when ssh is run in the background.  A

             common trick is to use this to run X11 programs on a remote

             machine.  For example, ssh -n shadows.cs.hut.fi emacs & will

             start an emacs on shadows.cs.hut.fi, and the X11 connection will

             be automatically forwarded over an encrypted channel.  The ssh

             program will be put in the background.  (This does not work if

             ssh needs to ask for a password or passphrase; see also the -f

             option.

     -N      Do not execute a remote command.  This is useful for just for‐

             warding ports (protocol version 2 only).

   -D [bind_address:]port

             Specifies a local “dynamic” application-level port forwarding.

             This works by allocating a socket to listen to port on the local

             side, optionally bound to the specified bind_address.  Whenever a

             connection is made to this port, the connection is forwarded over

             the secure channel, and the application protocol is then used to

             determine where to connect to from the remote machine.  Currently

             the SOCKS4 and SOCKS5 protocols are supported, and ssh will act

             as a SOCKS server.  Only root can forward privileged ports.

             Dynamic port forwardings can also be specified in the configura‐

             tion file.

             IPv6 addresses can be specified by enclosing the address in

             square brackets.  Only the superuser can forward privileged

             ports.  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.

转载于:https://my.oschina.net/superx/blog/325074

你可能感兴趣的文章
神奇的JAVA多态
查看>>
HADOOP都升级到2.5啦~~~
查看>>
一句话输出网站404页面,REFER及相关排序
查看>>
ASP.NET Core中如影随形的”依赖注入”[上]: 从两个不同的ServiceProvider说起
查看>>
其实,SSL也不是配通了就什么都不管的~~
查看>>
Java数组的应用:案例:杨辉三角,三维数组,字符串数组
查看>>
催云化雨终有时
查看>>
版本控制技巧转载链接汇总
查看>>
【文档】三、Mysql Binlog事件类文件和类型
查看>>
中国人工智能学会通讯——众包中的统计推断与激励机制 2 如何提高众包数据的质量...
查看>>
AI大事件 | Geoffrey Hinton决定抛弃反向传播,预期策略梯度算法
查看>>
短信退订——钓鱼攻击出现新方式
查看>>
网站安全风险依然严峻 绿盟科技五种场景化方案随需所用
查看>>
阿里云希望和合作伙伴一起飞
查看>>
利用显卡运行的恶意软件“水母”又有了Windows版本
查看>>
工信部正制定大数据产业十三五发展规划
查看>>
信息化为五万教学点带来“优质教师”
查看>>
马达加斯加政府对光伏系统采取重大财政激励举措
查看>>
《数据虚拟化:商务智能系统的数据架构与管理》一 1.9 数据虚拟化服务器概述...
查看>>
拥抱商业虚拟化生态,XSKY获VMware Ready Storage认证
查看>>