Windows10串連linux伺服器,windows10linux

來源:互聯網
上載者:User

Windows10串連linux伺服器,windows10linux
平時我們通過windows串連伺服器時,大多數用的是ssh用戶端軟體,推薦使用ssh,安全係數比較高。下面介紹用telnet串連伺服器。

用戶端:
C:\Users\dell>systeminfo主機名稱:           BOHAO
OS 名稱:          Microsoft Windows 10 家庭中文版
OS 版本:          10.0.10240 
OS 製造商:        Microsoft Corporation
OS 配置:          獨立工作站OS 構件類型:      Multiprocessor Free
註冊的所有人:     dell
...
...
首先是通過windows串連linux伺服器,所以安裝telnet用戶端服務,windows上安裝起來很方便:
windows鍵+X -——>程式和功能 ——->啟用或者關閉Windows功能———>選擇Telnet用戶端   
然後自動安裝了Telnet用戶端服務:Windows鍵盤+R --->cmd---->telnet
歡迎使用 Microsoft Telnet Client
Escape 字元為 'CTRL+]'
Microsoft Telnet>
此時用戶端已經安裝好了。

伺服器端:

[root@localhost ~]# cat /etc/issue
Enterprise Linux Enterprise Linux Server release 5.5 (Carthage)
Kernel \r on an \m
檢查是否安裝xinetd:
[root@localhost ~]# rpm -qa | grep xinetd
xinetd-2.3.14-10.el5
已經安裝了。檢查是否安裝Telnet:
[root@localhost ~]# rpm -qa | grep telnet
telnet-0.17-39.el5
此時系統只預設安裝了Telnet用戶端,我們需要手動安裝Telnet伺服器端
通過yum來安裝比較簡單,因為之前已經下載了Telnet service包:
[root@localhost 共用檔案]# rpm -ivh telnet-server-0.17-35.2.1.i386.rpm 
warning: telnet-server-0.17-35.2.1.i386.rpm: Header V3 DSA signature: NOKEY, key ID 4f2a6fd2
Preparing...                ########################################### [100%]
   1:telnet-server          ########################################### [100%]
安裝完成。配置:

 修改telnet設定檔:

vi /etc/xinetd.d/telnet

把disable的值改成no

修改iptables:
在/etc/sysconfig/iptables在該檔案中添加一行:-A INPUT -m state --state NEW -m tcp -p tcp --dport 23 -j ACCEPT

重啟xinetd服務:
[root@localhost ~]# service xinetd restart
停止 xinetd:                                              [確定]
啟動 xinetd:                                              [確定]
啟動Telnet服務:[root@localhost ~]# chkconfig telnet on


獲得伺服器IP:[oracle@localhost tmp]$ /sbin/ifconfig | grep 192
          inet addr:192.168.1.108  Bcast:192.168.1.255  Mask:255.255.255.0
 用戶端通過Telnet串連伺服器:


Enterprise Linux Enterprise Linux Server release 5.5 (Carthage)
Kernel 2.6.18-194.el5 on an i686
login: oracle
Password:
Last login: Mon Aug 17 17:32:10 from localhost
-bash: /home/oracle/.bash_profile: line 24: syntax error: unexpected end of file-bash-3.2$ bash
[oracle@localhost ~]$ w
 18:10:58 up  3:31,  5 users,  load average: 0.10, 0.08, 0.08
USER     TTY      FROM              LOGIN@   IDLE   JCPU   PCPU WHAT
oracle   :0       -                14:42   ?xdm?   1:10   0.08s /usr/bin/gnome-
oracle   pts/1    :0.0             17:23    3:11   0.02s  0.02s bash
oracle   pts/2    :0.0             16:37   53:33   0.07s 10.96s gnome-terminal
oracle   pts/3    :0.0             17:56   14:15   0.00s  0.00s bash
oracle   pts/4    localhost        18:10    0.00s  0.00s  0.00s w

以上已成功串連。  

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.