Hello guys, i am back with my new tutorial, Today i am going to tell you how to configure ssh longing with key authentication,
ssh is basically secure way to transfer data remote Linux UNIX system and you can upload download and manage your server, it is installed by default
you can perform variety of task via this like Automate the longing, making backup, uploading file, downloading file, run commands,
Scenario :- I have window 8 installed machine and my remote system having cantos (you can use any other flavor like Ubuntu, Kali, SUSE ) so i am going to use putty-gen to create authentication key and putty to connect our remote server,
so first i am creating our authentication key through putty-gen, while generating key keep moving your mouse its speed up the process.
so now you can see our authentication key has been generated, now i am going to save both key Public and private,
Private key :- Private key contain information about your system (like MAC Address and other) and encryption, the user keep the private key secret and user it to encrypt outgoing data and decrypt incoming data, for the security point permissions for the private key should be set so that only owner can access the key
Public key :- The user share the copy of public key to allow anyone to use encrypting data to be sent to the user and for decrypting data received from the user
this is how key look,
Now time to setup your server, create the file in .ssh folder with the name of authorized_key and copy the key and stop password loging
Now open the putty and put your server ip and port
Now we have to locate the private key which we saved
And here we go :) we are success fully connected with Linux server with ssh key..
Feel free to contact me regarding any queries, ideas and suggestions, I need your valuable ideas,
Thanks :)
0 comments:
Post a Comment