Step 1: Install a Linux machine.
Step 2: Type openssl --> if this is not working then in command line, enter -
sudo yum install openssl
Step 3: Next we will generate myCert.pem and myPrivateKey.key :
openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout myPrivateKey.key -out myCert.pem
Step 4: keep hitting enter, as it prompts for question.
Step 5: Now, type pwd , in command line and check the path.
Step 6: Go to that path and you should have myCert.pem and myPrivateKey.key
chmod 600 myPrivateKey.key
Step 8: Now, let us create the corresponding myCert.cer
openssl x509 -outform der -in /home/brillio/myCert.pem -out /home/brillio/myCert.cer
Step 9: Now we will create a ppk for putty. For this we first need to create RSA Private Key that PuttyGen(tool to create ppk) can understand.
openssl rsa -in /home/brillio/myPrivateKey.key -out myPrivateKey_rsa
chmod 600 /home/brillio/myPrivateKey_rsa
Step10: Now, download PuttyGen (This will generate ppk files for us to connect using putty)
Step 11: Now load the myPrivateKey_rsa and save the corresponding private and public keys.
Step 12: Now you should have the following keys.
Step 13: Next step is to download putty.exe.
Step 14: Open putty and provide hostname or IP Address as shown
Step 15: Click on Auth as shown, and provide the .ppk file just created. Click on open and you should be able to login to Linux machine using Putty.
No comments:
Post a Comment