Linux Virtual Machine Connection

Source: Internet
Author: User

1. We will sometimes be very slow when we connect to the server using SSH protocol.
Cause: Because we changed the hostname, SSH protocol by default will do reverse query, that is, IP on the domain name of the query, can not find out, wait until the time of the timeout will be connected
Method: Modify
[Email protected] ~]# Vi/etc/ssh/sshd_config

Enter/dns (query DNS for this character)
#UseDNS Yes
Modified to: Usedns No. Save exit
Restart SSH protocol
[Email protected] ~]#/etc/init.d/sshd restart
The next connection will be very fast.

2. Garbled problem
Cause: Character Set inconsistency
View the character sets we installed
Env view
Lang=zh_cn. UTF-8 (we installed for UTF-8)
Method: 1. CRT adaptation System
Modify CRT also for UTF-8
2. System adapts to CRT
If the CRT character set is default, it is the GBK character set. Modifying the system's character set
[Email protected] ~]# vi/etc/sysconfig/i18n
Lang= "ZH_CN. UTF-8
Modify to the GBK character set.
3. Not mounted on
CDROM hangs on the sr0.
[Email protected] ~]# Ll/dev/cdrom
lrwxrwxrwx. 1 root root 3 April 09:40/dev/cdrom-sr0
Look out CDROM and sr0 is a connection. So both of them can be mounted
[Email protected] ~]# mount/dev/cdrom/mnt
Mount:block Device/dev/sr0 is write-protected, mounting read-only
[Email protected] ~]# umount/mnt
[Email protected] ~]# mount/dev/sr0/mnt
Mount:block Device/dev/sr0 is write-protected, mounting read-only


Linux Virtual Machine Connection

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.