From the course: Linux CentOS 7: Desktops and Remote Access (2016)

Access the Linux CLI from Windows - Linux Tutorial

From the course: Linux CentOS 7: Desktops and Remote Access (2016)

Start my 1-month free trial

Access the Linux CLI from Windows

- [Narrator] To access the Linux command line remotely from Windows, we're going to use a free program called PuTTY. We'll need a Linux host IP address, so go to your virtual machine, open a terminal, and type in ifconfig. You'll notice that my IP address is 10.3.66.102. You'll want to take note of yours. On the windows machine, open a web browser, and browse to PuTTY.org. Click on download PuTTY here, scroll down and click on putty.exe. As soon as it's downloaded, click on it. In the Host Name section we're going to type in our IP address. Mine is 10.3.66.102. You want to make sure the connection type is SSH and I'm going to change the font size to a larger font. Click on 14, OK, now go back and click on Session and let's give this a name. Then click on Save. Now we'll want to click on Open, and type in our username and password. We can make this full screen. Once we're logged in, we're free to type in commands. If you want to access files on the Linux host using Windows without setting up a complex network file system, you can use WinSCP. Let's go back to our web browser and let's browse to WinSCP.net/eng/download.php. We'll click on the installation package. As soon as it's downloaded, click on installer. We'll want to accept the License Agreement, and for Setup Type the typical installation is recommended, so we'll go ahead and click on Next. For User Interface style Commander is the default, so we'll click Next again, and click Install. WinSCP's installer wants to know if we want to import the session we just created in PuTTY. Click on Yes, and make sure it's selected, and click on OK. Now we'll click on Finish. The after installation page for WinSCP's website comes up in another browser tab, but also WinSCP starts. Let's click on the session that was just imported, and click on Login. It'll ask for a username and password. We'll make this full screen. What we're seeing here is the right-hand pane is our Linux machine. We can see that the path is /home/ our username. The left-hand side of the screen is the Windows computer. If you want to copy files from one side to the other, you just grab them and drag them across, and click on OK. That's how you connect to a Linux host via the command line and file transfer.

Contents