Copyright

Accessing a Server Via SSH

Instructor: David Delony

David is a freelance writer specializing in technology. He holds a BA in communication.

Secure Shell (SSH) is a network protocol that gives users security in an unprotected network. SSH allows for remote access without having to sit at a computer and easy installation on common operating systems. In this lesson, we'll learn how to install SSH, use it to access remote servers, and more.

Accessing a Server Via SSH

Are you building a website? Are you managing a large database such as MySQL? Are you a system administrator managing Linux or Unix servers? If any of these apply, SSH or Secure Shell will be one of the main tools in your IT toolbox. It's very easy to access remote servers from wherever you are, from the data center to your home office to the local coffee shop.

Why SSH?

SSH's main selling point is its coupling of remote access with security.

Many rack-mounted servers run 'headless', that is, without a keyboard or monitor attached. It's possible to go around a data center with monitor and keyboard and plug them in to a machine you want to configure, but that's inconvenient. Some data centers have pull-out monitors and keyboards, but those are expensive.

Even worse, you have to physically walk up to these machines to access them. What about machines that might be located in a different part of the building, or even in a different country?

Fortunately, there are ways to access these machines remotely easily and safely.

SSH lets you access the shell or command line of an operating system from wherever you are over the network. With SSH, it's as if you were sitting right at the computer console, typing in commands. With SSH, you'll only be using text-based commands for accessing the system instead of something like the Control Panel in Windows or Preferences on the Mac, so you'll have to be comfortable with the command line, especially the Linux/Unix command line on the system you're trying to access.

SSH encrypts the connection so that eavesdroppers can't see sensitive information such as passwords, which makes it ideal for accessing computers over insecure networks such as public Wi-Fi.

For example, if you're logging in over a Wi-Fi connection at a coffee shop, a malicious user won't be able to intercept what you're typing, especially not your password, if you're using SSH. This makes it a vast improvement over the older Telnet that also offers remote access.

Getting SSH

If you have want to access remote servers using SSH, you likely already have the client installed if you're using Linux or Mac. If you're using Windows, there's a free application called PuTTY, which can be downloaded.

On the server side, the SSH server will also have to be installed. On many Unix and Linux versions, it is not installed by default for security reasons. The fewer services that allow remote logins, the less risk there is of unwanted users getting in, so it's best to enable SSH only if you're sure you really want to. The distribution's documentation will provide ample resources as to how to go about setting it up. It's usually a matter of simply installing the right package from the package manager.

If you're using a cloud computing platform, such as Amazon Web Services, you may have to enable SSH access from the configuration menu. Check with your provider on how to do this.

Accessing Remote Servers

It's also very easy to access remote servers with SSH. Suppose you need to access a machine to make changes to the web server. To access a remote server at Example.com, on a Linux/Unix or Mac system, you would just open up a terminal window and type:

ssh user@example.com

To unlock this lesson you must be a Study.com Member.
Create your account

Register to view this lesson

Are you a student or a teacher?

Unlock Your Education

See for yourself why 30 million people use Study.com

Become a Study.com member and start learning now.
Become a Member  Back
What teachers are saying about Study.com
Try it risk-free for 30 days

Earning College Credit

Did you know… We have over 200 college courses that prepare you to earn credit by exam that is accepted by over 1,500 colleges and universities. You can test out of the first two years of college and save thousands off your degree. Anyone can earn credit-by-exam regardless of age or education level.

To learn more, visit our Earning Credit Page

Transferring credit to the school of your choice

Not sure what college you want to attend yet? Study.com has thousands of articles about every imaginable degree, area of study and career path that can help you find the school that's right for you.

Create an account to start this course today
Try it risk-free for 30 days!
Create an account
Support