Putty remote logon to linux

Source: Internet
Author: User

Putty remote login to linux all kinds of problems putty remote login to linux convenience, presumably everyone has felt, about this tutorial Baidu a basket, here will not go into detail, it is mainly to summarize the problems encountered during the use of putty. If there are various problems in the use process, you can refer to the following method. You can use one method, if not, use OK. for firewall problems, we recommend that you disable the firewall command iptables-p input accept iptables-p forward accept iptables-p output accept iptables-F 2. network error: Connection refused use putty login display network error: Connection refused solution: 1. gedit/etc/ssh/sshd_config uncomment PermitRootLogin or change no to yes. (If there is no sshd_config file, SSH is not installed on linux. After sudo apt-get install ssh is used, the default value of the PermitRootLogin option in the sshd-config file is yes, the newly installed ssh server does not need to perform the following two operations) 2. service sshd restart (the command in ubuntu should use/etc/init. d/ssh restart to start the ssh service) 3. run the setup command to close the firewall. (Same as 1) 3. after using putty login show garbled in fact only one step: In the window-> Translation, character set, the Use font encoding to UTF-8, other do not need to change 4. when used, software conflicts and the like occur, which is the problem of your virtual machine ip address. Change the ip address in ubuntu first: obtain IP1. sudo vi/etc/network/interfaces auto lo iface lo inet loopbackauto eth0iface eth0 inet dhcp2.sudo vi/etc/resolv dynamically. confnameserver 192.168.1.13.sudo/etc/init. d/networking restart verification: ifconfig Second: set static IP1. sudo vi/etc/network/interfacesauto lo iface lo inet loopbackauto reset eth0 inet staticaddress limit 255.255.0gateway 192.168.1.12.sudo vi/etc/resolv. confnameserver 192.168.1.13.sudo/etc/init. d/networking restart

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.