A command prompt is a small text at the beginning of the command line followed by the symbol of the prompt on a command-line interface. It is often called a prompt. Once we open the terminal from our Linux machine, we shall get the prompt.
If you're stuck at any point while running a command, we can get back to the command prompt with the Ctrl + c command.
To access the terminal of the Linux system, we can also use the putty. Putty just works as the terminal of the Remote machine from the local machine.
Congratulations!! We have successfully installed Putty and a shortcut of Putty gets created.
To know the IP address, the command is:(This is for CentOS/Redhat 5 or 6).
ifconfig [OR] ip
For the CentOS/Redhat 7, the command
ifconfig gets replaced with
ip. From the CentOS/Redhat 7.5 and above, the
ifconfig command has been deprecated.
So if we are using Redhat or CentOS 7.5 version, we have run the command
ip addr to get the list of all IPs. With Redhat or CentOS 7.5, if we want to use the
ifconfig command we have to install a package called net-tools. The complete command is yum install net-tools.
Let us execute the command
ip addr command from the command prompt. The IP address gets listed out. Now launch the Putty by double-clicking on it.
Enter the IP address we just obtained by running the
ip addr command. The Port field gets populated by default. Enter the machine name in the Saved Sessions field. Click on Save. Then click on Open.
The Putty Security Alert pop up comes up. Click on Yes.
The Putty terminal screen opens up where we have to input our credentials. This is now similar to the GUI login which we have done earlier. If the GUI environment is not set up, we have to depend on Putty to work with Linux.
Some of the ways to troubleshoot issues while connecting Linux VM through Putty are:
Go to the Network tab, and check that Enable Network Adapter is checked. Also, verify if the Host-only Adapter option is selected.
It is also ok if we choose the option Bridge Adapter. If we are using a wireless connection like wifi, we need to select the Band Wireless option from the Name dropdown.
If we are connected through the Ethernet cable, we need to select the Ethernet Connection option from the Name dropdown.
Log in to the Linux machine, run the command
ifconfig. Verify the IP address and status should be
If the IP address and status is not populated, we have to restart the network service by running the command:
systemctl restart network.service
In Oracle virtual box manager, select the machine then click on Settings.
Go to the Network tab, click on Advanced. All the information should be populated.
Verify if the
SSH daemon is running with the command:
ps -ef | grep ssh
Myself Debomita Bhattacharjee, an IT employee with 6+ years of experience in Software industry. My area of interest is Automation testing and Front End Development.