CentOS下怎麼退出telnet

來源:互聯網
上載者:User

CentOS下怎麼退出telnet

在調試一個網路程式時遇到問題,服務啟動了,用戶端卻串連不上;首先就想到了用telnet串連看看;

命令和Windows下一樣,telnet IP 連接埠號碼

 

# telnet 192.168.0.107 1111
Trying 192.168.0.107...telnet: connect to address 192.168.0.107: Connection timed out
連線逾時了,估計是Windows防火牆的問題,我的服務是跑在Windows上的;

 

控制台》系統安全》Windows防火牆》進階設定》建立入站規則;

再執行telnet命令看看,

 

Trying 192.168.1.107...Connected to 192.168.1.107.Escape character is '^]'.
串連成功,果然是防火牆的問題!

 

 

誒[éi],怎麼回事! 退不出去了!Ctrl + c,Ctrl + z,ESC,q,quit,exit,都不行;

注意telnet串連成功後輸出的資訊:

 

Escape character is '^]'.
Ctrl + ]

 

姿勢終於對了;

 

telnet> ?Commands may be abbreviated.  Commands are:close   close current connectionlogout  forcibly logout remote user and close the connectiondisplay display operating parametersmode    try to enter line or character mode ('mode ?' for more)open    connect to a sitequit    exit telnetsend    transmit special characters ('send ?' for more)set     set operating parameters ('set ?' for more)unset   unset operating parameters ('unset ?' for more)status  print status informationtoggle  toggle operating parameters ('toggle ?' for more)slc     change state of special charaters ('slc ?' for more)z       suspend telnet!       invoke a subshellenviron change environment variables ('environ ?' for more)?       print help informationtelnet> closeConnection closed.
輸入問號然後斷行符號,可以查看協助;

 

輸入close或quit然後斷行符號,可以退出telnet;


====================我是分隔線===========================

 

一張看著看著,就能讓人心情變好的圖

 

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.