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