Common Threads: OpenSSH key management, Part 1 proxy forwarding and keychai

Source: Internet
Author: User
In this series of third articles, DanielRobbins shows you how to use the OpenSSH proxy program to connect and forward for enhanced security. He also shared the recent improvements to the keychainshell script. Many of us use very good OpenSSH as a substitute for old telnet and rsh commands. OpenSSH is not only secure but also
In this series of third articles, Daniel Robbins shows you how to use the OpenSSH proxy program to connect and forward for enhanced security. He also shared the recent improvements to the keychain shell script.

Many of us use very good OpenSSH as an oldtelnetAndrsh CommandOpenSSH is not only secure but also encrypted. One of the more attractive features of OpenSSH is its ability to authenticate users using a pair of complementary digital "keys"-based RSA and DSA authentication protocols. RSA and DSA certification promises to establish a connection with a remote system without providing a password, which is one of its major charms. For more background information, see previous articles in this series about OpenSSH key management, including RSA/DSA authentication (part 1) and ssh-agent and keychain (part 1 ).

Because Part 1 was published in 2ndDeveloperWorksAnd later I referenced this article on Slashdot and Freshmeat (refer to references later in this article to get links to these sites). Therefore, many people have started to use it.keychainAnd it has made many changes. I have received about 20 high-quality patches compiled by developers around the world. I have merged many of the patch codeskeychainIn the source code, its current version is 1.8 (see references ). I sincerely thank all those who submitted patches, error reports, functional requests, and thank-you emails.

Enhanced ssh Security

In the previous article, I spent some time discussing how to runssh-agentSecurity advantages and disadvantages. The second article is published inDeveloperWorksA few days later, I received an email from Charles Karney from Sarnoff Corporation, who politely notified me of the new OpenSSH Authentication Proxy forwarding capability, we will briefly discuss this capability. In addition, Charles stressed thatUntrustedRun on the machinessh-agentIt is very dangerous: If someone successfully obtains root access on the systemYesSlavessh-agentTo extract your decrypted key. Even if it is difficult to extract a key, it is still within the range of professional decryption experts. In addition, the basic fact is that the private key is stolenPossibleThis means that we should first take measures to prevent this situation.

To briefly describe the policy for protecting the private key, we must first classify the machines we access into one of the two types. If a specific host is safe or isolated? Is it almost impossible to successfully obtain root access to the host? That machine should be consideredTrusted host. However, if many others use this machine or you suspect the security of the system, this machine should be consideredUntrusted host. To prevent your private key from being extracted by others, you must never run it on untrusted hosts.ssh-agent(Andkeychain). In this case, even if the system security is threatenedssh-agentWithout running, the break-in cannot extract keys in the first time.

However, this creates a problem. If it cannot run on an untrusted hostssh-agent, How to establish a secure, password-lesssshWhat about connection? The answer is:TrustedUse on hostssh-agentAndkeychainAnd use the new OpenSSHAuthenticate forwarding capabilityExtend password-free authentication to any untrusted host. To put it simply, the remotesshSession to contactssh-agentTo enable authentication forwarding.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.