Master Linux in 5 Days

8 Getting Connected

Rate this post
(Auto-generated Video Transcript)
in this lesson you're going to learn how to log into a Linux system and we'll talk a little bit about SSH what that is and what as the siege clients you need to use if you have linux installed on hardware that you have physical access to or you have linux installed in virtual hardware like a virtual machine running and virtual box then you can connect directly to the linux server in this example we'll be looking at Linux running in a virtual machine in VirtualBox you can highlight your Linux virtual machine and click the green button to start it up we'll give it a few seconds here to boot you each linux logins will be a little different in this case you're given a list of users to choose from and when you click on that user you can enter in the password for that user and click the login button I'm going to select Jason type my password I could either hit enter here or click on the login button that's all there is to it to Center your username and password in this example you're giving a graphical user interface the Linux desktop in order to interact with the command line you need to start the terminal emulator application this is located in the applications and then systems tools menu now you see terminal just click on it and the next lesson will start interacting with the command line for now you just need to know where the terminal application is so you can start it and to exit it you simply type exit to logout of CentOS go to the system menu and log out on some linux systems you'll be prompted for a username in this case you have to type in your username i'm going to log in as jason so i'll type jason and i can either get login or hit the enter button then i'll type in my password let's see what it's like to log into a nun bun to Linux system will highlight the virtual machine and instead of clicking the green arrow this time we can right click and click start sometimes these are configured to auto login so you may not even have to enter a username and password in you'll just be given the desktop you in this case you see a menu again with a list of users that you can select and then enter the password for that user hit enter to login I'm going to select the virtualbox images com user and that user name is actually admin user and the password is admin user what is displayed in the menu is the description of the account you can see that the boom to desktop is different than centos again each linux distribution is going to look slightly different and function slightly differently going to exit out of the web browser here you see a list of applications hand side of your screen you can click on one of those to start it if you don't find what you're looking for you can click on the button in the top left and type in a search term this case we're looking for the terminal application so type in terminal and click on the terminal and there we are at the command line and again to exit the terminal application just type in the word exit in this desktop to log out or shut down go to the top right hand corner and click the gear icon I'm going to choose shut down and when prompted I'll click on shut down again sometimes you'll be presented with a text prompt to login instead of a graphical user interface again just type in your username and password if you install the server distribution instead of a desktop distribution this is the type of blogging prompt that you would expect to see again to exit just type the word exit I'll log in as the admin user with the password of admin user if you're going to connect to a the network more than likely you're going to use SSH SSH stands for secure shell ssh is a network protocol its primary purpose is to allow you to connect from one system to another system securely over a network in the past you would use telnet SSH has replaced telnet as it's more secure counterpart telnet is practically obsolete today but you may encounter it if you have to connect to a legacy system we've already touched on terminal emulators a couple of times in this course already in order to connect to Linux over the network we're going to need a terminal emulator that also acts as an SSH client for Windows the most popular SSH client and terminal emulator is a program called putty to get putty you can open up a web browser and type in PU TTYL download page and you only need PU TTYL exe at this point going to save file now I'm going to open the file and run the program in the hostname or IP address box I'm going to type in the network name of my linux server in this example I'm using li n ux svr whoever created your account on the linux server will be able to give you the details of view the host name or the IP address to use this could be a server at work it could be a shared host account so maybe your SS a Qing into your Bluehost com or hostgator com SSH account leave the default port at 22 unless you were specifically given another port to use click open to start the connection time you connect to a server you'll get a security alert and you can simply just click yes on this this will only happen the first time you log into a server now you can enter your username and password to login type exit when you're done putty has many features and options one of the things you can do is specify your username and putty before you try to connect on the right hand side click on data and then fill in the auto log and field I'm going to save this as a sesh can quickly log into the server again in the future give it a name and click the Save button and then when I double click it it will start a connection to that server you'll see that putty has already provided the linux server our username and now all we have to do is enter in our password I'm going to highlight my saved session click load and change the font go to the left hand side click on appearance under window and then I'll change the font make it nice and large so we can see you may have been given a IP address for your server so if you don't have a name but an IP you can use that as well again the first time you log into a server or a particular IP address it will ask you to confirm the post key just click yes again putty nose our username because we specified it and now we simply enter in our password in order to connect to a leg Mac you need to start the terminal application this is located and the Applications folder and there's a subfolder and they're called utilities you'll find terminal app and that directory once the terminal application that started you can use the SSH command to initiate a connection commands are case sensitive so be sure to use lowercase SSH this example of my username on my mac desktop is Jason and on the linux server it is also Jason so I'm just going to type SSH linux server again just like in windows you'll be prompted about the host key and you only have to accept this the first time you connect so i'll type in yes and then i'll be connected to the linux host to exit type exit if you want to our need to connect to the remote system using a different username you type in ssh space that username the @ symbol which is shift 2 and the name of the linux server in this case I'm going to use admin user and admin users the password now we are logged into the Linux system and I'll type exit to get back if you are using Linux at work you might connect to a server that ends and dot your company name com again just use the hostname or IP address that you were given to use the feedback connecting to an IP address works as well you to recap if you have physical access to a Linux system or if that Linux system is running in a virtual machine as in VirtualBox then you can log into it directly sometimes you'll be presented with a graphical interface to log into sometimes it will be just a textual prompt if you're going to log into a Linux system over the network you are going to use SSH for Windows users I recommend using putty as your ssh client for mac users use the built-in terminal application and command line ssh client

 

Read the video

In this lesson you will learn how to connect to a Linux system directly and over the network. You’ll learn about SSH and the software that you’ll need to connect to a Linux system.


Leave a Comment

Your email address will not be published. Required fields are marked *

Loading...
1Code.Blog - Your #1 Code Blog