Here i will try to demonstrate how to use ssh keys to login to machines without password.
Since i did not got it to work with putty now. i will do it with two unix machines and will soon continue this post on to configure it with putty.
1. Check the ssh-server installed on your machine or not. if not download the packages openssh-clients and openssh-server from the respective downloads site.
2. create public and private keys using ssh-keygen
user@home$ ssh-keygen -t dsa ##this will create public and privatye keys.
3. scp the public key to the remote host on which you want to gain the access without password.
user@home$ scp .ssh/id_dsa.pub user@machineB:~/.ssh/authorized_keys ## from machine a to machine b.
4. Now login from Machine A to Machine B and check. it will work without password.
Points:
1. you must login from the account where you have kept the private key. since, you try to login from a diferent account you private key wo0n't be there and that time you will be thrown to a password prompt.
2. Check the permissions of the directory .ssh to be 700 and the permission of the authorized_keys files must be 600. or else it won't work.
Popular Posts
-
Here are some useful links about Indian laws, courts, legal system and various departments of Government of India. Man...
-
Network-Attached Storage 1. Introduction 2. What is a NAS Device? 3. What is a Filer? 4. Network-Attached Storage Versus Sto...
-
The Basics. Network Storage - The Basics Are you new to network storage? If so then this series of articles is for you! Over the next few...
-
Save a lot of typing with these handy bash features you won't find in an old-fashioned UNIX shell. bash, or the Bourne again shell, ...
-
Linux admin interview questions How do you take a single line of input from the user in a shell script? Write a script to convert all DO...
-
* Determine the IPv4 addresses that you want to use for the additional interfaces. * Ensure that the physical interface to be configured has...
-
UNIX Questions and Answers Most answers refer to Solaris 2.x systems Hardware Issues How can I configure new devices without rebooting? What...
-
Tried Gusty Gibbon Ubuntu 6.10 on Compaq f733AU works fine without any major problems. some tweaking required in udev/rules/70-persistent-ne...
-
write 6 random bits of base64-encoded data. This will produce an eight character string making a good unix (crypt based) password: $ openssl...
-
Bryce Harrington and Kees Cook have come together to write this informative article titled ' Managing Disk Space with LVM ' which ...
0 comments:
Post a Comment