putty遠程登入linux的種種問題

來源:互聯網
上載者:User

putty遠程登入linux的種種問題 putty遠程登入linux的便利,想必大家都感受過,關於這方面的教程百度一下一大筐,這裡就不贅述了 , 主要是在使用putty的過程中出現的問題總結下 如果在使用過程中出現種種問題可以參考下邊的方法,可以用一種方法,如果不行 都使用也OK 1.防火牆問題建議的關閉防火牆命令是    iptables -P INPUT ACCEPT    iptables -P FORWARD ACCEPT    iptables -P OUTPUT ACCEPT    iptables -F 2 .network error:Connection refused 使用putty登入顯示network error:Connection refused使用putty登入顯示network error:Connection refused  在區域網路使用putty登入顯示network error:Connection refused 解決方案:  1.gedit /etc/ssh/sshd_config    將PermitRootLogin的注釋取消,或者將no改為yes。(如果沒有sshd_config檔案說明linux上沒有安裝SSH,使用sudo apt-get install ssh安裝之後,sshd-config檔案中PermitRootLogin選項預設的是yes,新安裝的ssh不用操作下面兩部)  2.service sshd restart             (ubuntu下的命令應該用/etc/init.d/ssh restart來啟動ssh服務)  3.setup命令進入將防火牆關閉。 (同1) 3 .使用putty登陸之後顯示亂碼   其實只需要一步即可: 在window-〉Translation中,character set 中,把Use font encoding改為UTF-8,其他不需要改動 4.當使用時出現軟體衝突之類的 就是你的虛擬機器ip的問題了    ubuntu下更改ip     第一種:動態擷取IP1. sudo vi /etc/network/interfaces auto lo iface lo inet loopbackauto eth0iface eth0 inet dhcp2.sudo vi /etc/resolv.confnameserver 192.168.1.13.sudo /etc/init.d/networking restart驗證:ifconfig 第二種:設定靜態IP1. sudo vi /etc/network/interfacesauto lo iface lo inet loopbackauto eth0iface eth0 inet staticaddress 192.168.1.239netmask 255.255.255.0gateway 192.168.1.12.sudo vi /etc/resolv.confnameserver 192.168.1.13.sudo /etc/init.d/networking restart 

聯繫我們

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