Linux host trust mechanism Configuration

Source: Internet
Author: User

Linux host trust mechanism configuration 1: private key and public key for producing rsa and dsa: On vmoel5u4: [oracle @ vmoel5u4 ~] $ Ssh-keygen-t rsaGenerating public/private rsa key pair. enter file in which to save the key (/home/oracle /. ssh/id_rsa): Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in/home/oracle /. ssh/id_rsa.Your public key has been saved in/home/oracle /. ssh/id_rsa.pub.The key fingerprint is: 06: 82: c4: a3: d0: b9: d8: 02: cf: dd: eb: 0e: 5e: db: 22: b1 oracle @ vm Oel5u4.oracle.com [oracle @ vmoel5u4 ~] $ Ssh-keygen-t dsaGenerating public/private dsa key pair. enter file in which to save the key (/home/oracle /. ssh/id_dsa): Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in/home/oracle /. ssh/id_dsa.Your public key has been saved in/home/oracle /. ssh/id_dsa.pub.The key fingerprint is: 7f: b4: 8e: bb: 67: 18: 73: 9f: 14: cf: 12: 47: 0d: 28: 93: aa oracle @ vm Oel5u4.oracle.com on even: [oracle @ even ~] $ Ssh-keygen-t rsaGenerating public/private rsa key pair. enter file in which to save the key (/home/oracle /. ssh/id_rsa): Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in/home/oracle /. ssh/id_rsa.Your public key has been saved in/home/oracle /. ssh/id_rsa.pub.The key fingerprint is: ad: 69: 3e: bc: ad: 57: ee: 03: 29: 25: b1: e5: b5: 99: 1b: af oracle @ ev En.oracle.com [oracle @ even ~] $ Ssh-keygen-t dsaGenerating public/private dsa key pair. enter file in which to save the key (/home/oracle /. ssh/id_dsa): Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in/home/oracle /. ssh/id_dsa.Your public key has been saved in/home/oracle /. ssh/id_dsa.pub.The key fingerprint is: 73: b7: 9c: ba: 83: 15: 67: 9e: a5: d9: af: 48: 69: 96: 1b: cb oracle @ ev En.oracle.com 2. Add the pub key to authorized_keys: On vmoel5u4: [oracle @ vmoel5u4 ~] $ Cd. ssh [oracle @ vmoel5u4. ssh] $ lltotal 20-rw ------- 1 oracle oinstall 668 Jun 11 id_dsa-rw-r -- r -- 1 oracle oinstall 616 Jun 11 id_dsa.pub-rw ------- 1 oracle oinstall 1675 Jun 11 id_rsa-rw-r -- r -- 1 oracle oinstall 408 Jun 11 id_rsa.pub-rw-r -- r -- 1 oracle oinstall 798 Jul 23 2012 known_hosts [oracle @ vmoel5u4. ssh] $ cat id_dsa.pub> authorized_keys [oracle @ vmoel5u4. ssh] $ lltota L 24-rw-r -- r -- 1 oracle oinstall 616 Jun 11 authorized_keys-rw ------- 1 oracle oinstall 668 Jun 11 id_dsa-rw-r -- r -- 1 oracle oinstall 616 Jun 11 id_dsa.pub-rw ------- 1 oracle oinstall 1675 Jun 11 id_rsa-rw-r -- r -- 1 oracle oinstall 408 Jun 11 id_rsa.pub-rw-r -- r -- 1 oracle oinstall 798 Jul 23 2012 known_hosts [oracle @ vmoel5u4. ssh] $ cat id_rsa.pub> authorized_keys [oracle @ Vmoel5u4. ssh] $ ssh even cat/home/oracle /. ssh/id_dsa.pub> authorized_keysoracle @ even's password: [oracle @ vmoel5u4. ssh] $ ssh even cat/home/oracle /. ssh/id_rsa.pub> authorized_keysoracle @ even's password: [oracle @ even. ssh] $ ssh vmoel5u4 cat/home/oracle /. ssh/authorized_keys> authorized_keys 3. Test: [oracle @ vmoel5u4 ~] $ Ssh evenLast login: Tue Jun 11 18:28:06 2013 from vmoel5u4.oracle.com [oracle @ even ~] $ [Oracle @ even ~] $ Ssh vmoel5u4Last login: Tue Jun 11 18:27:57 2013 from even.oracle.com [oracle @ vmoel5u4 ~] $ The test is successful. If you do not need to enter the password, you can switch between the two hosts through SSH !!!!!

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.