iSnare.com - Free Content Articles Directory
Authors Contents [Advanced Search][Add OpenSearch][Job Search]
Distribute your articles to thousands of article sites for only $2 and below! Read more...

Index  Computers and Technology
 

Public-Key SSH Login

 
[ Contact the Author] [ Send to a Friend] [ Article Publisher] [Make PDF] [ Print] [ Bookmark & Share]
 
Read our Terms of Service before reprinting this article. The submitter specified above has claimed the rights to this article.
Bryce Whitty

SSH is a popular system allowing a remote shell (command interpreter) to be used over a secure connection. By secure, here, I mean that the connection is encrypted, authenticated and integrity checked. The encryption prevents attackers reading the contents of the data being transmitted, the authentication allows both the client and the server to be sure that they are connected to the other, and not to some intermediate system in a man-in-the-middle attack, and the integrity checking ensures that the data is not being changed during transit. Together, these three features provide a secure connection.

Even so, the password based login feature transmits your password through this link, to the remote server, where it is hashed and compared with the stored value in the password file. To many, even though the connection is encrypted, this is not satisfactory. SSH allows the use of public key authentication to login to a server. Here, you upload your public key to the server, and keep your private key on the client machine, optionally password protected so that no one can steal your private key file and use it to gain access without a password.

Now, when the SSH connection is established, the server will need to check the authentication of the client; that is, make sure it is you logging in. This was previously done by requesting your password, and comparing it against the stored password hash. Now, the server encrypts a randomly generated token against your public key, and sends this to you. The private key associated with your public key, stored in a file to which only you have access, either by password protection, filesystem permissions or other means, is the only key able to decrypt this message. Now, your SSH client will decrypt the message and send it back to the server, which compares it against the original value. In reality, the authentication is often also checked in the opposite direction, using the server’s public key, which may be stored by the client. Once the server knows you hold the private key which corresponds to the public key, it grants you access.

So, you may ask, what is the security benefit here? Well, no secret information is being transmitted. You are no longer transmitting a password, nor are you transmitting any of your private key file. You are using the keys to encrypt and decrypt a piece of random data, which works one time only. Anyone who did somehow manage to listen in on this data stream would not be able to regain access by playing back your password, or even by playing back the same data transaction, as a different value would be encrypted the next time you login, and only the private key itself can decrypt that.

Public Key authentication is supported in OpenSSH, and also in PuTTY and many other SSH systems. Check your systems documentation for details on how to use public-key based logins.

Important NoticeDISCLAIMER: All information, content, and data in this article are sole opinions and/or findings of the individual user or organization that registered and submitted this article at Isnare.com without any fee. The article is strictly for educational or entertainment purposes only and should not be used in any way, implemented or applied without consultation from a professional. We at Isnare.com do not, in anyway, contribute or include our own findings, facts and opinions in any articles presented in this site. Publishing this article does not constitute Isnare.com's support or sponsorship for this article. Isnare.com is an article publishing service. Please read our Terms of Service for more information.

Bryce Whitty owns and runs computer repair website called http://Technibble.com. A website that provides technical how-to’s for repairing your computer. Technibble also has many guides for getting into the computer business or managing
Article Tags: key [See Dictionary], password [See Dictionary], server [See Dictionary]
Got a question about this article? Ask the community!
Article published on June 11, 2006 at Isnare.com
 
Rate this article:

On Denial Of Service Attacks
Submitted by: Bryce Whitty

I was thinking about this attack pattern after reading about the DDoSattack on theMillion Dollar Homepage...

5 Reasons to Consider the Destroyit 4107 Cross Cut Shredder
Submitted by: Jeff McRitchie

There is shredding, and then there is "Shredding" The Destroyit 4107 is a heavy duty shredder that can handle just about anything any sized office can throw at it...

Reviewing the Akiles CombMac 24E Electric Plastic Comb Binding Machine
Submitted by: Jeff McRitchie

Because it is a rare electric comb binding systems on the market that works with legal size sheets, the Akiles CombMac 24E already has somewhat of a competitive advantage...

Reviewing the Akiles DuoMac 321 Combination 3:1 and 2:1 Pitch Wire Binding Machine
Submitted by: Jeff McRitchie

Offering some nice flexibility in binding styles, the Akiles DuoMac 321 is positioned as a binding solution for businesses and organizations that want the ability to bind documents in as many as five binding styles...

Reviewing the Akiles DuoMac 421 Combination 4:1 Pitch Coil and 2:1 Pitch Wire Binding Machine
Submitted by: Jeff McRitchie

The Akiles DuoMac 421 is a combination binding system that offers medium volume users with three different binding styles...

Sony Ericsson W595 Mobile Phone Review - The Latest and Best Walkman Phone?
Submitted by: Carlson Osbourne

The one thing that most Sony Ericsson phones have in abundance is good looks No matter what lies beneath the surface, they all tend to have unique and beautiful appearances that can enhance the style factor of everyone using them...

Sony Ericsson W705 Mobile Phone Review - Tune Into the Beat With the Ultimate Walkman Phone
Submitted by: Carlson Osbourne

Sony Ericsson is known the world over for their amazingly functional and stylish mobile phones It is easy to see why when you take a look at some of the handsets that they have produced over the years and one of their latest additions to the Walkman range can be added to that illustrious list...

Nokia 5800 XpressMusic Mobile Phone Review - The Trendsetter of Nokia Touch Screens
Submitted by: Carlson Osbourne

Behind all of their market competitors they may be but Nokia have now introduced their very first touch screen phone...

Nokia 6260 Slide Mobile Phone Review - Mobile High Speed Technology at Your Fingertips
Submitted by: Carlson Osbourne

The Nokia 6260 Slide is one of the latest additions to the Nokia mobile phone handset family and also one of the most modern...

What is the Difference Between Cat-5, Cat-5e, And Cat-6 Cable?
Submitted by: Derek Rogers

For those unfamiliar with the various types of Ethernet cables available for networking and connecting their computers to the Internet, making the choice between Cat-5, Cat-5e, and Cat-6 cables can be a rather confusing one...

When Should I Upgrade to Cat-6 Cable?
Submitted by: Derek Rogers

Upgrading to Cat-6, or to give it its full name, Category-6 cable, is generally done in computer networking when all of the components used are rated at higher speeds and will therefore require the increased bandwidth that this particular cabling can provide...

How Can Unified Communications Benefit My Business?
Submitted by: Derek Rogers

Unified communications (UC) is a relatively new term in the industry which is used to describe the technological union between computing and telephony, two forms of communicating that were previously separated by differing infrastructures...

How Can I Be Sure My Old IT Equipment is Disposed of Securely and Properly?
Submitted by: Derek Rogers

With the rapidly improving and expanding technology of today, people tend to replace their personal computers on a regular basis in order to keep up with the latest advancements...

How To Extend The Use Of Your Computer With Extra Programs
Submitted by: Colon Bolden

When you bought your personal computer, it came loaded with a selection of software Each of these contains a number of programs that allow you to perform a range of functions, such as word processing and spreadsheet work...

Five Things to Consider When Buying a Pouch Laminator
Submitted by: Jeff McRitchie

There are a lot of different laminating machines out there on the market, and with so many options, it can sometimes be difficult to choose the machine that is just right for you and your needs...

Top Iphone Clones Review
Submitted by: Roberto Sedycias

One of the most popular iPhone clones is the CECT i9, which has become a preferred choice for many The new iPhone clone supports Java, which means the downloading of third party software that can comfortably allow the availability of new functions...

Isnare.com Footer Divider

© 2004-2009. Isnare Free Articles - An Isnare Online Technologies Free Articles Project. All Rights Reserved.   Privacy Policy