Вы находитесь на странице: 1из 3

RHCE/RHCSA Exam Notes: ssh

http://rhel6notes.blogspot.in/search/label/ssh

Share

More

Next Blog

Create Blog

Sign In

RHCE/RHCSA Exam Notes


This is my personal notes on RHCSA/RHCE exam. Site still work in progress. For comments and suggestions email me at mctofferatgmaildotcom
Generate SSH Key Image Viewer Remote Viewer Public SSH Server

There was an error in this gadget

Showing posts with label ssh. Show all posts

About ME The main purpose of this site is to dump all my notes on Redhat certification RHCSA/RHEL. If you have comments and suggestions, please do email me on mctofferatgmaildotcom

Thursday, April 21, 2011

SSH
To generate ssh private and public key

Labels . (1) /info/Quick_Notes (4) /info/RHCE_Exam_Obje ctives (2) accounts (2) apache (2) Archive and Compression (1) bind (1) filesystem (7) grub (1) iptables (3) Journal (5) kickstart (1) KVM (1) Lab station (1) luks (1) LVM (2) mail servers (1) nfs (1) ntp (1) parted (2)

[chris@rhel01 .ssh]$ ssh-keygen -t rsa Generating public/private rsa key pair. Enter file in which to save the key (/home/chris/.ssh/id_rsa): Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in /home/chris/.ssh/id_rsa. Your public key has been saved in /home/chris/.ssh/id_rsa.pub. The key fingerprint is: 8c:23:99:93:4a:6d:27:9c:7b:92:07:aa:49:5d:6a:87 chris@rhel01.localdomain The key's randomart image is: +--[ RSA 2048]----+ | | | | | | | o = o | | . &.+ S | | ..++O . | | .oE+.o | |.o. .+ | |o | +-----------------+

This will create under ~/.ssh id_rsa.pub public key to copied to the remote system and id_rsa private key for your local system The best way to copy id_rsa.pub into a remote system is to use scp-copy-id This command will automatically create authorized_keys under ~/.ssh/
#scp-copy-id -i /home/chris/.ssh/id_rsa rhel02 The authenticity of host 'rhel02 (192.168.1.201)' can't be established. RSA key fingerprint is 01:91:64:15:5b:64:fa:90:bb:b5:63:5e:f8:7e:73:71. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added 'rhel02,192.168.1.201' (RSA) to the list of known hosts. chris@rhel02's password: Now try logging into the machine, with "ssh 'rhel02'", and check in: .ssh/authorized_keys to make sure we haven't added extra keys that you weren't expecting. [chris@rhel01 ~]$ ssh rhel02 Last login: Fri Apr 8 03:23:42 2011 from rhel01 chris@rhel02.localdomain: ~ $

I tried to remove all files under ~/.ssh and the authorized_keys on the destination server. Re-do everything but when tried to ssh again, it gives me this error

1 of 3

Thursday 02 May 2013 03:16 PM

RHCE/RHCSA Exam Notes: ssh

http://rhel6notes.blogspot.in/search/label/ssh

ports (1) RAID (1) remote access (1) RHCSA/RHEL Books and Sites (1) rpm (2) runlevels (1) security (4) selinux (1) ssh (1) swap (1) system messages (1) YUM (2)

[chris@wk ~]$ ssh rhel01 Agent admitted failure to sign using the key.

One solution was to use "ssh-add" command

[chris@wk ~]$ ssh-add Identity added: /home/chris/.ssh/id_rsa (/home/chris/.ssh/id_rsa) [chris@wk ~]$ ssh rhel01 Last login: Sat Jul 9 08:43:50 2011 from 192.168.122.1 [chris@rhel01 ~]$

Posted by penoi at 11:37 PM

No comments:

Recommend this on Google

Labels: security, ssh

Koenig Solutions - India


www.Koenig-India.com

Ready To Play?
Quikr.com/treasur Play for Free & Win Recharge worth Rs.1 Lakh Everday. Play Now.

#1 Choice of IT Professionals to Learn Advanced IT Courses

Home
Subscribe to: Posts (Atom)

Older Posts

Followers

2 of 3

Thursday 02 May 2013 03:16 PM

RHCE/RHCSA Exam Notes: ssh

http://rhel6notes.blogspot.in/search/label/ssh

Awesome Inc. template. Template images by Jason Morrow. Powered by Blogger.

3 of 3

Thursday 02 May 2013 03:16 PM

Вам также может понравиться