Virtual Machine RedHat communication and enabling telnet login

Source: Internet
Author: User
I recently learned how to perform Oracle operations on RedHat. Of course, I need to install REDHAT first, and how to access LINUX Through the host is encountered during installation, the first is how to access the REDHAT installed on vmware. The network is set to HOST-ONLY. Then, set the linux ip address and gateway based on the VMwareNetworkAdapterVMnet1 IP address in the VM. the linux ip address must be the same as the VMwareNetworkAdapterVM IP address.

I recently learned how to perform Oracle operations on RedHat. Of course, I need to install REDHAT first, and how to access LINUX Through the host is encountered during installation, the first is how to access the REDHAT installed on vmware. The network is set to HOST-ONLY.

Then, set the linux ip address and gateway based on the VMware Network Adapter VMnet1 IP address in the VM. the linux ip address must be in the same Network segment as the VMware Network Adapter VMnet1, the LINUX gateway address is the address of VMware Network Adapter VMnet1, so that you can PING each other.

Then install the TELNET service for two machines. I will not talk about the WINDOWS platform. It is very simple. I will focus on the installation in LINUX.

First, check whether the TELNET service is installed in LINUX. In terminal mode, enter the following command.

[Root @ orclserver ~] # Rpm-qa telnet-server
Telnet-server-0.17-39.el5

Indicates that the TELNET service is successfully installed. If no proof is displayed, you must first install the service.

You can directly find the REDHAT installation disk inside the telnet-server-0.17-25.i386.rpm double-click to install

Run the preceding command again after the installation is successful.

Start the TELNET service, open the/ETC/XINETD. D/TELNET file, and change disable = yes

DISABLE = NO

  1. [Root @ orclserver ~] # Cat/etc/xinetd. d/telnet
  2. #Default:On 
  3. # Description: The telnet server serves telnet sessions; it uses \
  4. # Unencrypted username/PasswordPairsForAuthentication.
  5. Service telnet
  6. {
  7. Flags = REUSE
  8. Socket_type = stream
  9. Wait =No 
  10. User= Root
  11. Server =/usr/sbin/In. Telnetd
  12. Log_on_failure + = USERID
  13. Disable =No 
  14. }

Restart the XINET Service

[Root @ orclserver ~] # Service xinetd restart

Now, you should be able to access the virtual machine's LINUX Through telnet. If not, you need to shut down the linux iptables Firewall Service and restart the LINUX

[Root @ orclserver ~] # Service iptables stop

In this case, you should be able to enter LOGIN on the LOGIN interface, but you may not be able to log on as the ROOT user. Because of linux login restrictions, we need to modify the/ETC/SECURETTY file and add PTS/1, PTS/2 .......

The number after PTS indicates that several ROOT users can log on at the same time.

[Root @ orclserver ~] # Cat/etc/securetty
Console
Pts/1
Pts/2
Vc/1
Vc/2
Vc/3
Vc/4
Vc/5
Vc/6
Vc/7
Vc/8
Vc/9
Vc/10
Vc/11
Tty1
Tty2
Tty3
Tty4
Tty5
Tty6
Tty7
Tty8
Tty9
Tty10
Tty11

Now try again to log on.

The preceding modifications to LINUX Files are made using the VI command.

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.