PUTTY connection: virtual machine connection method, putty connection to Virtual Machine

Source: Internet
Author: User

PUTTY connection: virtual machine connection method, putty connection to Virtual Machine

**************************************** ******************************** **************** 

Original Works are from the blog of "Deep Blue blog". You are welcome to repost them. Please indicate the source when you repost them. Otherwise, the copyright will be held legally responsible.

Please leave a message or email (hyldba@163.com) indicating that there is an error. Thank you very much.

This article reprint must be kept here: http://blog.csdn.net/huangyanlong/article/details/39180075

Deep Blue blog: http://blog.csdn.net/huangyanlong

**************************************** **************************************** ********************

PUTTY connection: ssh connection

Putty connection error:


Normal CRT connection


Try to use a non-encrypted connection, as shown in the following figure:


After the operation, the screen will flash and jump out of putty.

Use ssh again to connect, as shown in:


The connection is successful, for example:


Troubleshoot the problem:

The database server uses a virtual machine, and the NIC is set to "bridge Nic", as shown in:


Change the connection mode to Host Mode in Nic settings, as shown in:


If you modify the settings above, this problem does not occur again.

**************************************** ******************************** **************** 

Original Works are from the blog of "Deep Blue blog". You are welcome to repost them. Please indicate the source when you repost them. Otherwise, the copyright will be held legally responsible.

Please leave a message or email (hyldba@163.com) indicating that there is an error. Thank you very much.

This article reprint must be kept here: http://blog.csdn.net/huangyanlong/article/details/39180075

Deep Blue blog: http://blog.csdn.net/huangyanlong

**************************************** **************************************** ********************


Putty does not respond to linux connection in vmware

First, check whether you are using bridging or nat.
If it is a bridge, go to the network neighbor of the real machine to check the IP address of Virtual Network Card 1. If it is 10.10.10.1, change the linux ip address in your virtual machine to the same network segment as the ip address of vnic 1. Change it to 10.10.10.2 and use the ip address in the virtual machine using putty.
Address. The same is true for nat methods.
The ip address of the VM must be in the same network segment as vnic 8.



Why does putty fail ?? How to Use putty to access linux on the Virtual Machine solved the problem and added an additional 100 points

Network error: connection refused
The connection is rejected because the ssh/telnet system has made security settings. For example, you can only log on to a specified IP address, it is best to check whether there are similar settings in linux first.

Check whether hosts. allow and hosts. deny are set.
Both files are in the/etc/directory.
The priority is to first check hosts. deny, and then check hosts. allow. The latter can be set beyond the former limit,
For example:
1. restrict all ssh,
Unless it comes from 218.64.87.1.
Hosts. deny:
In. sshd: ALL
Hosts. allow:
In. sshd: 218.64.87.1

2. Disable 218.64.87.1
Hosts. deny
In. sshd: 218.64.87.1

3. restrict all TCP connections, unless accessed from 218.64.87.1
Hosts. deny
ALL: ALL
Hosts. allow
ALL: 218.64.87.1

4. Restrict 218.64.87.1 access to all services
Hosts. deny
ALL: 218.64.87.1

The front of the colon is the name of the TCP daemon service process, which is usually specified by the system process in/etc/inetd. conf, such as in. ftpd, in. telnetd, in. sshd

Telnet the IP address directly under the windows CMD command line to see if it can be connected. If it can, it will not be the putty problem, but the system has made security settings. putty cannot be used to download secureCRT and also supports ssh.

Isn't it because the ssh service in the system is not available?
# Ps-ef | grep sshd to check whether there are any processes.
#/Etc/rc. d/init. d/sshd start

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.