Unix Administration
Tuesday, January 22, 2008
 
SSH configuration for one host to other host in UNIX.

1.Generate the key from which host to need to do for ssh
$ ssh-keygen -trsa
it will be create and stoerd in .ssh directory

2.copy the key to distination host.
$ ls -a
. .. authorized_keys id_rsa id_rsa.pub known_hosts
Here u need to copy the id_rsa.pub to destination host.

$ scp id_rsa.pub ram@111.11.1.1:~/.ssh/authorized_keys
ram@111.11.1.1's password:
id_rsa.pub 100% |*****************************| 233 00:00

3.Once successfully copied, do the ssh it wont ask any password
[ram@bc .ssh]$ ssh 111.11.1.1
Wel Come To Dax Server
[ram@dax ~]$

Note: Before do this configuration make sure that the username for both host are same.
 
Comments: Post a Comment

Subscribe to Post Comments [Atom]





<< Home

Name:

5 Words to sum up - Internet, Photography,Reading,Friends, Technology

Archives
January 2008 / June 2008 / September 2008 / November 2008 / January 2009 /


Powered by Blogger

Subscribe to
Posts [Atom]